Hi Folks.
I've run into a big problem with a project. Having testbedded some circuits on an 28X2 shield I now have made the circuit bowrd for it using an 14M2. I now realise that the 14M2 does not do SPI natively and I cannot get it to work using bit-bangin.
The modules I am using are from Freetronix and are based on the WS2801 IC
The principle of them is simple. There are 3 LEDs (RGB) controlled by a number between 0 and 255 So you send the 3 numbers to make any color you want.
If you have multiple modiles string in series they just overflow the additional values to the next module until all sets pf numbers has been passed
To use with as 28X2 I can do
and turn all LED's on full.
However my test code of
Will only control the first module and not the second.
Can anyone help? I really don;t wnat to dump the completed board just becuse the 14M2's cannot handle the SPIOUT command.
Many thanks
Dave
I've run into a big problem with a project. Having testbedded some circuits on an 28X2 shield I now have made the circuit bowrd for it using an 14M2. I now realise that the 14M2 does not do SPI natively and I cannot get it to work using bit-bangin.
The modules I am using are from Freetronix and are based on the WS2801 IC
The principle of them is simple. There are 3 LEDs (RGB) controlled by a number between 0 and 255 So you send the 3 numbers to make any color you want.
If you have multiple modiles string in series they just overflow the additional values to the next module until all sets pf numbers has been passed
To use with as 28X2 I can do
Code:
spiout sclk, sdata,1, (255,255,255,255,255,255)
However my test code of
Code:
High sclk
for b0 = 0 to 47
low sclk
high sdata
high sclk
next
low sclk
pause 50
Can anyone help? I really don;t wnat to dump the completed board just becuse the 14M2's cannot handle the SPIOUT command.
Many thanks
Dave