This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ARD true // Set to true if Arduino, false if Trinket. | |
#define ANG 180 // Defines the angle of rotation for the servo motor. | |
#if ARD // Arduino Globals: | |
const int motorPin = 10; | |
const int LEDPin = 4; | |
const int soundPin = 9; | |
const int buttonPin = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
#include <ArduinoJson.h> | |
// pin identification numbers | |
const int datapin1 = 4; | |
const int loadpin1 = 5; | |
const int clockpin1 = 14; | |
const int datapin2 = 12; | |
const int loadpin2 = 13; |