Add Button

This commit is contained in:
fvanroie 2020-02-18 21:59:43 +01:00
parent 3dc9b89fd6
commit af16164e41
2 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,8 @@
#define HASP_USE_EEPROM 0 #define HASP_USE_EEPROM 0
#define HASP_USE_SDCARD 0 #define HASP_USE_SDCARD 0
#define HASP_USE_BUTTON 1
#define HASP_USE_QRCODE 1 #define HASP_USE_QRCODE 1
#define HASP_USE_PNGDECODE 0 #define HASP_USE_PNGDECODE 0

View File

@ -39,6 +39,10 @@
#include "hasp_mdns.h" #include "hasp_mdns.h"
#endif #endif
#if HASP_USE_BUTTON
#include "hasp_button.h"
#endif
bool isConnected; bool isConnected;
void setup() void setup()
@ -83,6 +87,10 @@ void setup()
httpSetup(settings[F("http")]); httpSetup(settings[F("http")]);
#endif #endif
#if HASP_USE_BUTTON
buttonSetup();
#endif
// otaSetup(settings[F("ota")]); // otaSetup(settings[F("ota")]);
#endif #endif
} }
@ -123,6 +131,10 @@ void loop()
mdnsLoop(isConnected); mdnsLoop(isConnected);
#endif #endif
#if HASP_USE_BUTTON
buttonLoop();
#endif
// otaLoop(wifiIsConnected); // otaLoop(wifiIsConnected);
#endif #endif