#ifndef PROGRAM_H #define PROGRAM_H #include #include #include #include #include "DiscordAPI.h" #include "SwitchableEncodeur.h" #include "LedLib.h" enum MainMenu{ INITIAL_STATE, GET_START_HOUR, SELECT_END_HOUR, SEND_TO_DISCORD }; class Program { public: /** * Program startup */ Program(); /** * Program main loop */ void loop(); private: /** * Encoder object */ SwitchableEncodeur* encoder; /** * Old encoder position */ long oldPosition; DiscordAPI* discord; LedLib* ledLib; WiFiUDP* ntpUDP; NTPClient* timeClient; /** * @brief Send time to discord * the start time is automaticly set to the current time * @param[in] timeEnd LabOuest closing time */ void sendTime(String timeEnd); //state of the button MainMenu menu; //temps de reset in ms ulong resetMillis; //numéro de led de dépard int nLedStart; // apres midi bool pm; }; #endif