First thoughts are
1. declare a bit array of the appropriate size
2. declare your output pin
3. set the bits of the array to the desired state
Then transmit it something like this.....
I might have the state of the pin wrong for your application but you should get the ideaCode:For x = 0 to {number_of_bits-1) If bitarray[x] = 1 then outputpin=1 else outputpin=0 endif pause 1 ' wait for 1ms - might need changing for pauseus 990 or similar Next
Bookmarks