diff options
| -rw-r--r-- | examples/nrf52840/src/bin/pwm_sequence_ws2812b.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/nrf52840/src/bin/pwm_sequence_ws2812b.rs b/examples/nrf52840/src/bin/pwm_sequence_ws2812b.rs index 751cf4425..6f04a53b8 100644 --- a/examples/nrf52840/src/bin/pwm_sequence_ws2812b.rs +++ b/examples/nrf52840/src/bin/pwm_sequence_ws2812b.rs | |||
| @@ -14,6 +14,16 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 14 | // https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf. | 14 | // https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf. |
| 15 | // This demo lights up a single LED in blue. It then proceeds | 15 | // This demo lights up a single LED in blue. It then proceeds |
| 16 | // to pulsate the LED rapidly. | 16 | // to pulsate the LED rapidly. |
| 17 | // | ||
| 18 | // /!\ NOTE FOR nRF52840-DK users /!\ | ||
| 19 | // | ||
| 20 | // If you're using the nRF52840-DK, the default "Vdd" power source | ||
| 21 | // will set the GPIO I/O voltage to 3.0v, using the onboard regulator. | ||
| 22 | // This can sometimes not be enough to drive the WS2812B signal if you | ||
| 23 | // are not using an external regulator. If you set the board to "USB" power | ||
| 24 | // instead (and provide power via the "nRF USB" connector), the board will | ||
| 25 | // instead power the I/Os at 3.3v, which is often enough (but still out of | ||
| 26 | // official spec) for the WS2812Bs to work properly. | ||
| 17 | 27 | ||
| 18 | // In the following declarations, setting the high bit tells the PWM | 28 | // In the following declarations, setting the high bit tells the PWM |
| 19 | // to reverse polarity, which is what the WS2812B expects. | 29 | // to reverse polarity, which is what the WS2812B expects. |
