Skip to content

Commit

Permalink
Fix ESP32 hello_rgb example (#1173)
Browse files Browse the repository at this point in the history
* Fix ESP32 hello_rgb example

* CHANGELOG.md
  • Loading branch information
bjoernQ authored Feb 16, 2024
1 parent 6e68da0 commit 2a5996f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix `get_raw_core` on Xtensa (#1126)
- Fix docs.rs documentation builds (#1129)
- Fix circular DMA (#1144)
- Fix `hello_rgb` example for ESP32 (#1173)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion esp32-hal/examples/hello_rgb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn main() -> ! {
// -> We need to use the macro `smartLedBuffer!` with the number of addressed
// LEDs here to initialize the internal LED pulse buffer to the correct
// size!
let rmt_buffer = smartLedBuffer!(1);
let rmt_buffer = smartLedBuffer!(12);
let mut led = SmartLedsAdapter::new(rmt.channel0, io.pins.gpio33, rmt_buffer, &clocks);

// Initialize the Delay peripheral, and use it to toggle the LED state in a
Expand Down

0 comments on commit 2a5996f

Please sign in to comment.