Well metaphorically speaking, I was beginning to panic figuring the code out.I'm going to need someone to hold my hand
So am I right in thinking that the DAT_OUT byte:
Becomes:Code:DAT_OUT = %10101001
When SW1 is pressed.Code:DAT_OUT = %10101011
And
When SW2 is pressed.Code:DAT_OUT = %10101101
The checksum:
Will that always be the calculated value of BYTE:Code:' Build checksum of 2 data bytes CHK_SUM = (DAT_OUT * 2)
Because this is the last BYTE to be read / run in the program sequence.Code:DAT_OUT.0[2]=~GPIO.4
Dave




Bookmarks