SwingeyP
Member
Hello.
How can I display a single bit with LCDOUT?
This code will explain better what I am trying to do (hopefully)
I am displaying the letter as it arrives from the lookup on line 1 and then I want to display th eindividual bits of the letter on line 3 from the j loop.
Regards - Paul
How can I display a single bit with LCDOUT?
This code will explain better what I am trying to do (hopefully)
Code:
Function rtty_txtbyte(chr As Byte) As Byte
Lcdcmdout LcdLine1Pos(1)
Lcdout "Char = " chr
Call rtty_txbit(0) 'start Bit
'send bits For For char lsb first
For j = 0 To 7 'change this here 7 Or 8 For ascii-7 / ascii-8
Lcdcmdout LcdLine3Pos(1)
Lcdout "Bit = " chr(j)
If chr.0 Then
Call rtty_txbit(1)
Else
Call rtty_txbit(0)
Endif
chr = ShiftRight(chr, 1)
Next j
Call rtty_txbit(1) 'stop Bit
Call rtty_txbit(1) 'stop Bit
End Function
I am displaying the letter as it arrives from the lookup on line 1 and then I want to display th eindividual bits of the letter on line 3 from the j loop.
Regards - Paul