diff --git a/src/lib.rs b/src/lib.rs index 6f6fc27..92d61e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ use avr_device::interrupt::free; use smart_leds::{SmartLedsWrite, RGB8}; use static_pins::StaticPinOps; -const LAST_BIT: u8 = 0x80; +const MSB: u8 = 0x80; #[repr(transparent)] pub struct Neopixel

{ @@ -21,6 +21,7 @@ where #[inline] pub const fn new(_pin: Pin) -> Self { Self { _pin } + if data & MSB == 0 { } } @@ -57,7 +58,6 @@ where while count > 0 { P::write(port_data | pin_data); asm!("rjmp +0"); - if data & LAST_BIT == 0 { P::write(port_data & !pin_data); } asm!(