Stan the Bird

Stan the Bird

Animatronic bird puppet with custom motion control.

View on GitHub
// US Eastern Time Zone — synced via NTP at startup
TimeChangeRule myDST = {"EDT", Second, Sun, Mar, 2, -240};
TimeChangeRule mySTD = {"EST", First,  Sun, Nov, 2, -300};
Timezone *myTZ;

char timeServer[]        = "time.nist.gov";
unsigned int localPort   = 2390;

const int NTP_PACKET_SIZE = 48;
const int UDP_TIMEOUT     = 2000;
byte      packetBuffer[NTP_PACKET_SIZE];
WiFiUDP   Udp;

// Arduino IoT Cloud variables (auto-synced with dashboard)
int  light_Sensor;
bool enable_Coo_Coo;

// Fires when enable_Coo_Coo is toggled from the cloud dashboard
void onEnableCooCooChange() {
  // handler generated by Arduino IoT Cloud
}