);
let mut delay = Delay::new(_core.SYST, &mut _clocks);
+ // set pins low to prevent floating values read as data by the pixels
+ let mut front_neopixel_pin = _pins.d11.into_push_pull_output(&mut _pins.port);
+ let mut rear_neopixel_pin = _pins.neopixel.into_push_pull_output(&mut _pins.port);
+ front_neopixel_pin.set_low().unwrap();
+ rear_neopixel_pin.set_high().unwrap();
+
// use ChannelMode::NoBlockS
rtt_init_print!(NoBlockSkip, 4096);
lcd.set_orientation(Orientation::Landscape).unwrap();
- let mut _buffy = [0u16; 24 * 32];
let mut buffy2 = [[0u16; 320]; 240];
let mut fbuffy = buffer::FrameBuffer::new(&mut buffy2);
- // // rrrrr gggggg bbbbb
- // buffy.iter_mut().for_each(|px| *px = 0b11111_000000_00000);
-
let mut style = TextStyleBuilder::new(Font8x16)
.text_color(Rgb565::WHITE)
.background_color(Rgb565::BLACK)