Teensy 3.2 code debugging question

Status
Not open for further replies.

Super Chicken

New member
Hello,
I'm on Windows 8.1.
I'm building an interactive art piece with 2 rotary encoder buttons and 3 strips of LEDs.

One rotary encoder controls brightness of the front LEDs
The other rotary encoder controls the brightness of the back LEDs
The buttons of the rotary encoders control whether the middle LEDs are on or off.

In an earlier version of the code (DoubleInfinity2.ino) before I split the LED strips, the rotary encoder and button worked, and all pixels were being rendered.

In the latest version (DoubleInfinity4.ino), the rotary encoders are not functioning, nor is the button. And the 3rd strip of pixels is not rendering.

I'm using the WS2812Serial library, and calling it 3 times to push the pixels into the 3 strips.

Where did I go wrong?

Love,

Super Chicken

View attachment DoubleInfinity2.ino
View attachment DoubleInfinity4.ino
breadboard.jpg
 
Pin 31 is from Serial2, so it won't work if you're already using pin 10 for serial. Pin 31 would only be useful if you had to dedicate pin 10 for some other purpose (like if you were hypothetically using the audio shield).

For 3 completely independent WS2812Serial outputs, get the updated WS2812Serial.cpp from this message, and set Tools > CPU Speed to 120 MHz.
 
Status
Not open for further replies.
Back
Top