void main(void) { WDTCTL = WDTPW | WDTHOLD; //stop watchdog timer LEDSetup(); buttonSetup(); timerSetup(); _BIS_SR(GIE); //global interrupts enabled while(1) { } }
void setup() { delay(5000); Serial.begin(115200); buttonSetup(); configSetup(); if(wifiAP) wifiSetupAP(); else { wifiSetup(); mdnsSetup(); } sensorsSetup(); ticker.attach(takeReadingsEvery, tick); webServerSetup(); }
void mainSetup() { ledSetup(); buttonSetup(); }