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
//Leonardo | |
Serial_ & dbgTerminal = Serial; | |
HardwareSerial & espSerial = Serial1; | |
////UNO & M328P | |
//#include <SoftwareSerial.h> | |
//SoftwareSerial dbgTerminal(10, 11); // RX, TX | |
//HardwareSerial & espSerial = Serial; | |
// |
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> | |
const char* ssid = "-----------"; | |
const char* password = "-----------"; | |
// ThingSpeak Settings | |
char thingSpeakAddress[] = "api.thingspeak.com"; | |
String writeAPIKey = "----------------------"; | |
const int updateThingSpeakInterval = 15 * 1000; // Time interval in milliseconds to update ThingSpeak (number of seconds * 1000 = interval) |
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 <WiFiUdp.h> | |
WiFiUDP Udp; | |
const char* ssid = "------------"; | |
const char* password = "---------------"; | |
IPAddress local_ip = {192,168,1,200}; | |
IPAddress gateway = {192,168,1,1}; |
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 <WiFiUdp.h> | |
WiFiUDP Udp; | |
const char* ssid = "----------"; | |
const char* password = "--------------"; | |
IPAddress local_ip = {192,168,1,200}; | |
IPAddress gateway = {192,168,1,1}; |
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 <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
const char* ssid = "..............."; | |
const char* password = "..............."; | |
ESP8266WebServer server(80); | |
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
int ledPin = 13; | |
boolean btn_up,btn_down; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(2, INPUT_PULLUP); | |
pinMode(3, INPUT_PULLUP); | |
for (int pin=6; pin<=13;pin++) { | |
pinMode(pin, OUTPUT); |
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
int ledPin; | |
int timeDelay; | |
int ledup = {6,7,8,9,10,11,12,13,12,11,10,9,8,7,6}; | |
void setup() { | |
for (ledPin = 0;ledPin<=8;ledPin++) { | |
pinMode( ledup[ledPin], OUTPUT); | |
} | |
} |
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
byte seven_seg_digits[11][7] = { { 1,1,1,1,1,1,0 }, // = 0 | |
{ 0,1,1,0,0,0,0 }, // = 1 | |
{ 1,1,0,1,1,0,1 }, // = 2 | |
{ 1,1,1,1,0,0,1 }, // = 3 | |
{ 0,1,1,0,0,1,1 }, // = 4 | |
{ 1,0,1,1,0,1,1 }, // = 5 | |
{ 1,0,1,1,1,1,1 }, // = 6 | |
{ 1,1,1,0,0,0,0 }, // = 7 | |
{ 1,1,1,1,1,1,1 }, // = 8 | |
{ 1,1,1,1,0,1,1 }, // = 9 |
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 <WiFiUdp.h> | |
#include <Adafruit_NeoPixel.h> | |
WiFiUDP Udp; | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(5, 5, NEO_GRB + NEO_KHZ800); | |
const char* ssid = "..............."; | |
const char* password = "........................"; |
OlderNewer