diff options
| author | James Munns <[email protected]> | 2025-01-02 18:23:34 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-01-02 18:23:34 +0100 |
| commit | 41790316eb06a02b909b99df2c4fd5c0bc855445 (patch) | |
| tree | 0e42c44d02d2f33befbf0b3cec2ed5c37c22efa1 /examples/nrf52840/src | |
| parent | 2c87b31395d0ea54ae6fffa47918392333578882 (diff) | |
Add note for nRF52840-dk board details
Diffstat (limited to 'examples/nrf52840/src')
| -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. |
