From 4e3adb0062f2f259c79947e4a75afd12ea84a64d Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 3 Aug 2023 17:06:42 +0200 Subject: [PATCH] Use GPIO17 for relay --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 03e8e3c..e6ecdfa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -212,16 +212,18 @@ fn main() -> ! { panic!(); } + let timer = Timer::new(p.TIMER, &mut p.RESETS); + let so = pins.gpio6.into_floating_input(); let cs = pins.gpio7.into_push_pull_output_in_state(PinState::High); let sck = pins.gpio8.into_push_pull_output(); let mut thermocouple = Max6675::new(cs, sck, so); - let timer = Timer::new(p.TIMER, &mut p.RESETS); - let mut relay = pins.gpio14.into_push_pull_output_in_state(PinState::Low); let button = pins.gpio15.into_pull_up_input(); + let mut relay = pins.gpio17.into_push_pull_output_in_state(PinState::Low); + let mut led = pins.led.into_push_pull_output_in_state(PinState::Low); let mut button_held = false;