aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-01-02 18:27:24 +0100
committerGitHub <[email protected]>2025-01-02 18:27:24 +0100
commit0d1319be686bce9a91e2ccfc124db7189fe7a616 (patch)
tree797ab2a52048b57183e5b81c1e354d2ed8b2cd08
parentf816cacaf7a4d7da9e741ddea005561a404db7cd (diff)
parent5c74e6085c24d8808433fa8862c7eecb4ff767ba (diff)
Merge pull request #3709 from jamesmunns/james/ws2812b-note
Add note for nRF52840-dk board details
-rw-r--r--examples/nrf52840/src/bin/pwm_sequence_ws2812b.rs10
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..df8da8800 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 level shifter. If you set the board to "USB"
24// power instead (and provide power via the "nRF USB" connector), the board
25// will instead power the I/Os at 3.3v, which is often enough (but still
26// out of 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.