From 6012c764bc9312ae520d5c1e611f37ac7dd0a981 Mon Sep 17 00:00:00 2001 From: arosspope Date: Sun, 24 Dec 2023 16:55:43 +1100 Subject: [PATCH] Some cleanup --- src/led.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/led.rs b/src/led.rs index 8079d24..40d7298 100644 --- a/src/led.rs +++ b/src/led.rs @@ -1,4 +1,4 @@ -use anyhow::Result; // TODO: why use anyhow? +use anyhow::Result; use core::time::Duration; use esp_idf_hal::{ gpio::OutputPin, @@ -6,14 +6,13 @@ use esp_idf_hal::{ 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

+ 'd, channel: impl Peripheral

+ 'd,