mirror of
https://github.com/stakwork/sphinx-key.git
synced 2026-01-31 05:14:31 +01:00
periph: set led pin to 0
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user