Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arosspope committed Dec 24, 2023
1 parent bf21a5a commit 6012c76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/led.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
use anyhow::Result; // TODO: why use anyhow?
use anyhow::Result;
use core::time::Duration;
use esp_idf_hal::{
gpio::OutputPin,
peripheral::Peripheral,
rmt::{config::TransmitConfig, FixedLengthSignal, PinState, Pulse, RmtChannel, TxRmtDriver},
};

pub use rgb::RGB8; // TODO: Find a better way to expose this
pub use rgb::RGB8;

pub struct WS2812RMT<'a> {
tx_rtm_driver: TxRmtDriver<'a>,
}

impl<'d> WS2812RMT<'d> {
// Rust ESP Board gpio2, ESP32-C3-DevKitC-02 gpio8 TODO: This is the wrong LED / KIT reference code!!!
pub fn new(
led: impl Peripheral<P = impl OutputPin> + 'd,
channel: impl Peripheral<P = impl RmtChannel> + 'd,
Expand Down

0 comments on commit 6012c76

Please sign in to comment.