Skip to content

Commit 4179031

Browse files
committed
Add note for nRF52840-dk board details
1 parent 2c87b31 commit 4179031

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/nrf52840/src/bin/pwm_sequence_ws2812b.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ use {defmt_rtt as _, panic_probe as _};
1414
// https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf.
1515
// This demo lights up a single LED in blue. It then proceeds
1616
// 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.
1727

1828
// In the following declarations, setting the high bit tells the PWM
1929
// to reverse polarity, which is what the WS2812B expects.

0 commit comments

Comments
 (0)