| 1 | // Copyright © 2025 David Haig |
|---|---|
| 2 | // SPDX-License-Identifier: MIT |
| 3 | |
| 4 | use crate::controller::Hardware; |
| 5 | |
| 6 | pub struct HardwareMcu { |
| 7 | pub green_led: embassy_stm32::gpio::Output<'static>, |
| 8 | } |
| 9 | |
| 10 | impl Hardware for HardwareMcu { |
| 11 | fn green_led_set_high(&mut self) { |
| 12 | self.green_led.set_high(); |
| 13 | } |
| 14 | |
| 15 | fn green_led_set_low(&mut self) { |
| 16 | self.green_led.set_low(); |
| 17 | } |
| 18 | } |
| 19 |
