mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 06:40:47 +00:00
SmartLedsAdapter example requires clocks and interrupt handler (#1504)
This commit is contained in:
parent
e0610f7997
commit
94bca218c9
@ -12,10 +12,10 @@
|
||||
//!
|
||||
//! ```rust,ignore
|
||||
//! let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);
|
||||
//! let rmt = Rmt::new(peripherals.RMT, 80.MHz(), &clocks).unwrap();
|
||||
//! let rmt = Rmt::new(peripherals.RMT, 80.MHz(), &clocks, None).unwrap();
|
||||
//!
|
||||
//! let rmt_buffer = smartLedBuffer!(1);
|
||||
//! let mut led = SmartLedsAdapter::new(rmt.channel0, io.pins.gpio2, rmt_buffer);
|
||||
//! let mut led = SmartLedsAdapter::new(rmt.channel0, io.pins.gpio2, rmt_buffer, &clocks);
|
||||
//! ```
|
||||
//!
|
||||
//! ## Feature Flags
|
||||
|
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Fixed
|
||||
|
||||
- i2c: i2c1_handler used I2C0 register block by mistake (#1487)
|
||||
- Smart LEDs docs example (#1504)
|
||||
|
||||
### Changed
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user