Modes of Operation
Each digital I/O pins of the board can be configured either as input or output. Output pins can be either digital (on / off), setup to generate a PWM at different frequencies or control a WS28XX RGB led.
PWM frequencies and resolution
Not all pins can do PWM. The following table summarizes the characteristics of each pins.
Pin # | Frequencies | Resolution (bits) |
---|---|---|
3, 11 |
|
|
5, 6 |
|
|
9, 10 |
|
|
122Hz |
|
|
31Hz |
|
WS28XX RGB led
On each pin, up to 16 (chained) leds can be addressed (4 bits). Each color channel of each led is coded on 4 bits. The 16 bits value sent to the corresponding pin is interpreted according to the following table.
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|