/* Main power/blink logic */ #pragma once typedef enum { STATE_DEEPSLEEP = 0, /* Turned off based on time of day. */ STATE_POLL = 1, /* Polling for movement intermittenly. */ STATE_ACTIVE = 2, /* Actively monitor the sensors and blink based on that. */ } system_state_t; // Returns the number of milliseconds to sleep. int main_logic_step(); // Return the current system state. system_state_t main_logic_state();