You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
715 B

/*
* Blink
* Turns on an LED on for one second,
* then off for one second, repeatedly.
*/
#include <Arduino.h>
#include "hardware.h"
#include "wifi.h"
#include "webserver.h"
#include "pusher.h"
Wifi wifi;
Webserver webserver;
Pusher pusher;
void setup()
{
Serial.begin(112500);
Serial.println("Hello");
// initialize LED digital pin as an output.
pinMode(LED_BUILTIN, OUTPUT);
wifi.connect();
webserver.start();
pusher.setup();
}
void loop()
{
// turn the LED on (HIGH is the voltage level)
digitalWrite(LED_BUILTIN, HIGH);
// wait for a second
delay(1000);
// turn the LED off by making the voltage LOW
digitalWrite(LED_BUILTIN, LOW);
// wait for a second
delay(1000);
}