Quote Originally Posted by keithdoxey View Post
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.....
Code:
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
I might have the state of the pin wrong for your application but you should get the idea
ok but how to define or declare an array like this?

bitarray VAR BIT[200]
bitarray = %1000000000111110110110110110101010110101011010101 01011011111111111111111110110110110110101010110101 01101010101011011111111111111111110110110110110101 0101101010110101010101101

The compiler returns with "Numeric overflow, value truncated."