hi
This should be really easy but i can't work it out.
How do I read 4 pins into a byte?
Something along these lines maybe?
This should be really easy but i can't work it out.
How do I read 4 pins into a byte?
Something along these lines maybe?
B4X:
dim s as byte
For i = 0 To 3
Dim f As Boolean
f = rly(i).DigitalRead
If f = True Then
'some part of byte s = 1
Else
'some part of byte s = 0
End If
next