diff --git a/factory/src/led.rs b/factory/src/led.rs index 6e241d1..2db2012 100644 --- a/factory/src/led.rs +++ b/factory/src/led.rs @@ -7,7 +7,7 @@ use std::time::Duration; pub fn set_ota_led() { let peripherals = Peripherals::take().unwrap(); - let led = peripherals.pins.gpio4.into_output().unwrap(); + let led = peripherals.pins.gpio0.into_output().unwrap(); let channel = peripherals.rmt.channel0; let config = TransmitConfig::new().clock_divider(1); let mut tx = Transmit::new(led, channel, &config).unwrap(); diff --git a/sphinx-key/src/main.rs b/sphinx-key/src/main.rs index b49e59e..e3582e6 100644 --- a/sphinx-key/src/main.rs +++ b/sphinx-key/src/main.rs @@ -43,7 +43,7 @@ fn main() -> Result<()> { let (led_tx, led_rx) = mpsc::channel(); // LED control thread - led_control_loop(pins.gpio4, peripherals.rmt.channel0, led_rx); + led_control_loop(pins.gpio0, peripherals.rmt.channel0, led_rx); led_tx.send(Status::MountingSDCard).unwrap(); println!("About to mount the sdcard..."); diff --git a/sphinx-key/src/periph/led.rs b/sphinx-key/src/periph/led.rs index 0891f8a..99188a6 100644 --- a/sphinx-key/src/periph/led.rs +++ b/sphinx-key/src/periph/led.rs @@ -33,11 +33,11 @@ fn states() -> BTreeMap { } pub fn led_control_loop( - gpio4: gpio::Gpio4, + gpio0: gpio::Gpio0, channel0: rmt::CHANNEL0, rx: mpsc::Receiver, ) { - let led = gpio4.into_output().unwrap(); + let led = gpio0.into_output().unwrap(); let config = TransmitConfig::new().clock_divider(1); let transmit = Arc::new(Mutex::new(Transmit::new(led, channel0, &config).unwrap())); thread::spawn(move || { @@ -71,7 +71,7 @@ impl Led { pub fn blink( &mut self, - transmit: Arc, rmt::CHANNEL0>>>, + transmit: Arc, rmt::CHANNEL0>>>, ) { // Prepare signal let mut tx = transmit.lock().unwrap();