Use GPIO17 for relay
This commit is contained in:
parent
f4b60aad42
commit
4e3adb0062
|
@ -212,16 +212,18 @@ fn main() -> ! {
|
||||||
panic!();
|
panic!();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let timer = Timer::new(p.TIMER, &mut p.RESETS);
|
||||||
|
|
||||||
let so = pins.gpio6.into_floating_input();
|
let so = pins.gpio6.into_floating_input();
|
||||||
let cs = pins.gpio7.into_push_pull_output_in_state(PinState::High);
|
let cs = pins.gpio7.into_push_pull_output_in_state(PinState::High);
|
||||||
let sck = pins.gpio8.into_push_pull_output();
|
let sck = pins.gpio8.into_push_pull_output();
|
||||||
|
|
||||||
let mut thermocouple = Max6675::new(cs, sck, so);
|
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 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 led = pins.led.into_push_pull_output_in_state(PinState::Low);
|
||||||
|
|
||||||
let mut button_held = false;
|
let mut button_held = false;
|
||||||
|
|
Loading…
Reference in New Issue