add some feature
This commit is contained in:
@@ -37,8 +37,7 @@ void bma_setup( TTGOClass *ttgo ) {
|
||||
pinMode( BMA423_INT1, INPUT );
|
||||
attachInterrupt( BMA423_INT1, bma_irq, RISING );
|
||||
|
||||
ttgo->bma->enableStepCountInterrupt( bma_config[ BMA_STEPCOUNTER ].enable );
|
||||
ttgo->bma->enableWakeupInterrupt( bma_config[ BMA_DOUBLECLICK ].enable );
|
||||
bma_reload_settings();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "wifictl.h"
|
||||
|
||||
#include "gui/statusbar.h"
|
||||
#include "webserver/webserver.h"
|
||||
|
||||
bool wifi_init = false;
|
||||
TaskHandle_t _WIFICTL_Task;
|
||||
@@ -76,6 +77,7 @@ void wifictl_setup( void ) {
|
||||
statusbar_style_icon( STATUSBAR_WIFI, STATUSBAR_STYLE_WHITE );
|
||||
statusbar_show_icon( STATUSBAR_WIFI );
|
||||
statusbar_wifi_set_state( true, wifiname );
|
||||
asyncwebserver_setup();
|
||||
}, WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP );
|
||||
|
||||
WiFi.onEvent([](WiFiEvent_t event, WiFiEventInfo_t info) {
|
||||
|
||||
Reference in New Issue
Block a user