void main(void)
{
	WDTCTL = WDTPW | WDTHOLD;       //stop watchdog timer

	LEDSetup();
	buttonSetup();
	timerSetup();
	
	_BIS_SR(GIE);   //global interrupts enabled
	while(1)
	{

	}
}
Exemplo n.º 2
0
void setup() {

  delay(5000);
  Serial.begin(115200);

  buttonSetup();

  configSetup();

  if(wifiAP)
    wifiSetupAP();
  else {
    wifiSetup();
    mdnsSetup();
  }

  sensorsSetup();

  ticker.attach(takeReadingsEvery, tick);

  webServerSetup();
}
Exemplo n.º 3
0
Arquivo: main.c Projeto: akerenyi/ess
void mainSetup() {
	ledSetup();
	buttonSetup();
}