Digital RGB LED strip trouble with Netduino
Moderators: adafruit_support_bill, adafruit

Digital RGB LED strip trouble with Netduino

by JammerX19 on Wed Dec 05, 2012 8:16 pm

I am following this tutorial: http://wiki.netduino.com/AdaFruit-Digit ... D8806.ashx

Even when I copy/paste their code into my Netduino, I cannot target an individual LED correctly. Their example is supposed to light only the 21st LED but when I run it, the 21st LED is yellow and the 22nd is green. Has anyone ever seen this problem?

I'm running a 1m strip that I assembled from the adafruit tutorial and a standard Netduino.
JammerX19
 
Posts: 7
Joined: Wed Dec 17, 2008 9:49 pm

Re: Digital RGB LED strip trouble with Netduino

by tldr on Wed Dec 05, 2012 9:30 pm

here's your trouble.

Code: Select all | TOGGLE FULL SIZE
leds[21 * 3 + 3] = 0x80 | 32;  //21-blue = some value


should be 21 * 3 + 2.
"If I had known it was harmless, I would have killed it myself." - Phillip K. Dick, A Scanner Darkly
User avatar
tldr
 
Posts: 466
Joined: Thu Aug 30, 2012 12:34 am

Re: Digital RGB LED strip trouble with Netduino

by JammerX19 on Wed Dec 05, 2012 9:44 pm

Yeah, I caught that right after I posted it. :cry:
JammerX19
 
Posts: 7
Joined: Wed Dec 17, 2008 9:49 pm