Hello all,
Can anyone help me fix this problem? I am trying to send 4 bytes of an 8 byte integer using Printbin. I can get this code to work, when using a LONG, but when I try to switch to a Double and send the lower 4 bytes, it does not work.
4 Byte code:
[code:1:b8bf03e3a1]
Dim Gatecode As Long
Dim Sndpin(4) As Byte At Gatecode Overlay
Printbin #1 , Sndpin(4) ; 1
Printbin #1 , Sndpin(3) ; 1
Printbin #1 , Sndpin(2) ; 1
Printbin #1 , Sndpin(1) ; 1 '<------ WORKS 4 byte integer
[/code:1:b8bf03e3a1]
8 byte code:
[code:1:b8bf03e3a1]
Dim Gatecode As Double
Dim Sndpin(8) As Byte At Gatecode Overlay
Printbin #1 , Sndpin(4) ; 1
Printbin #1 , Sndpin(3) ; 1
Printbin #1 , Sndpin(2) ; 1
Printbin #1 , Sndpin(1) ; 1 '<------ Does not work
[/code:1:b8bf03e3a1]
Can anyone help me to solve this problem?
Thank you,
Tim
[b:b8bf03e3a1][color=red:b8bf03e3a1](BASCOM-AVR version : 2.0.7.7 )[/b:b8bf03e3a1][/color:b8bf03e3a1]
↧