Digital RGB LED strip trouble with Netduino

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jammerx19
 
Posts: 12
Joined: Wed Dec 17, 2008 10:49 pm

Digital RGB LED strip trouble with Netduino

Post by jammerx19 »

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.

tldr
 
Posts: 466
Joined: Thu Aug 30, 2012 1:34 am

Re: Digital RGB LED strip trouble with Netduino

Post by tldr »

here's your trouble.

Code: Select all

leds[21 * 3 + 3] = 0x80 | 32;  //21-blue = some value
should be 21 * 3 + 2.

User avatar
jammerx19
 
Posts: 12
Joined: Wed Dec 17, 2008 10:49 pm

Re: Digital RGB LED strip trouble with Netduino

Post by jammerx19 »

Yeah, I caught that right after I posted it. :cry:

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”