using GPIO onTeensy 3.0 with OctoWS2811

Status
Not open for further replies.

priestnot

New member
Hello and thank in advance for any help I can get from you.

I have a teensy 3.0 and I am trying to make a led (based on WS2811) and I am using the OctoWS2811 shield.
To controll the ledstrip I am using the OctoWS2811 library.

The problem is that I am also trying to use some inputs to change the pattern in the led strip.
When I try to read the choosen IO's They all read 0 and never the 1.
If I make a simple IO program thatreadsthe same IO's and prints it using serial port they work.

Is there something that the OctoWS2811 library does that can mess with port B and C of the uC. I noticed that the PTB0 and the PTC0 are used for controll of the leds using DMA and interrupts.

Can some one tell me if I can or cannot use this IO's.

At the moment I am trying to use the following IO's:

Teensy Pin #uC Pin Name
22PTC1
23PTC2
9PTC3
10PTC4
11PTC6
12PTC7
17PTB1
19PTB2
18PTB3
 
Double-check that you are setting up those pins as inputs. see `pinMode()`.

But, best to post the code you are using (use the "code" block button available in the "Advanced" post editor) so we can try and help you.

Forum Rule: Always post complete source code & details to reproduce any issue!
 
Status
Not open for further replies.
Back
Top