Main Site Documentation

SPI on FEZ Mini - Tring to do RGB LEDs


#1

I was tring to use this code:

http://code.tinyclr.com/project/320/sparkfun-32-rgb-led-strip-wic/

On the FEZ Mini. In the driver, it mentions that it’s coded for Di11 and Di13 , which I assume will correspond to UEXT8 and UEXT9 on the Fez Mini.

But when I tried to do it, absolutely nothing happens (forgive me, I don’t have a logic analyzer so I don’t know if nothing happens, it just the LEDs don’t do anything but lamp the last one on the string, which it does anyway with power supplied and the other 2 pins diconnected).

I also tried to change the code for the SPI configuration from:


   _cfg = new SPI.Configuration (Cpu.Pin.GPIO_NONE, false, 0, 0, false, true, 2000, module); 


to:


  _cfg = new SPI.Configuration ((Cpu.Pin)FEZ_Pin.Digital.UEXT10, false, 0, 0, false, true, 2000, module);

Is this right? Am I doing something wrong? It’s driving me crazy.

Can someone point me in the right direction on how to do Software SPI and I could move it different pins to see if that is the issue?

Thanks,

Tom


#2

I’m semi-officially an idiot. I figured it out…The code as posted works just fine, it makes a difference what end of the light strand you wire to ;D