mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-11-29 00:56:21 +00:00
added button action configuration and handling for reset and restart
This commit is contained in:
parent
5870182507
commit
3aeb8ffe5b
4 changed files with 62 additions and 0 deletions
|
|
@ -29,6 +29,14 @@ enum Direction
|
|||
};
|
||||
const uint8_t DIRECTION_SIZE = 2;
|
||||
|
||||
enum ButtonAction
|
||||
{
|
||||
None,
|
||||
ResetConfig,
|
||||
Restart
|
||||
};
|
||||
const uint8_t BUTTON_ACTION_SIZE = 3;
|
||||
|
||||
const Connection DEFAULT_CONNECTION = WiFiAP;
|
||||
const IpMethod DEFAULT_IP_METHOD = DHCP;
|
||||
extern String DEFAULT_SSID; // initialized in setup because it depends on the mac address
|
||||
|
|
@ -43,6 +51,7 @@ const uint8_t DEFAULT_UNIVERSE1 = 1;
|
|||
const uint8_t DEFAULT_UNIVERSE2 = 2;
|
||||
|
||||
const uint8_t DEFAULT_LED_BRIGHTNESS = 25;
|
||||
const ButtonAction DEFAULT_BUTTON_ACTION = Restart;
|
||||
|
||||
void onGetConfig(AsyncWebServerRequest *request);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue