diff --git a/ch32v-insert-coin/src/main.rs b/ch32v-insert-coin/src/main.rs index a208ea8..3b1ff43 100644 --- a/ch32v-insert-coin/src/main.rs +++ b/ch32v-insert-coin/src/main.rs @@ -15,7 +15,7 @@ use synthesizer::AppSynthesizers; mod app; use app::{ - sequencer::BasicSequence, App, Config, Interfaces, Sequences, Services, State, TimerConfig, + App, Config, Interfaces, Sequences, Services, State, TimerConfig, sequencer::BasicSequence, }; use ch32_hal::{adc::AdcChannel, interrupt::typelevel::Handler, timer::low_level::OutputPolarity}; @@ -99,19 +99,6 @@ impl<'a> DebouncedGPIO<'a> { } } -// DeepSleep --coin button irq--> Active -// Active --2s button--> Idle -// Idle/Active --5s button--> DeepSleep - -pub enum SystemState { - // system is asleep, waiting for wake from coin insertion - DeepSleep, - // system is in low-power mode, dimmed lights, waiting for interaction - Idle, - // system is active. on entry: play coin sound. on button press: play different sound - Active, -} - #[derive(Debug)] struct Flag { value: bool,