This file contains 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
//Lajtronix JBC 3-Tool Selector | |
void setup() { | |
pinMode(15, INPUT_PULLUP); // Input button T245 | |
pinMode(16, INPUT_PULLUP); // Input button NT115A | |
pinMode(17, INPUT_PULLUP); // Input button AN115A | |
pinMode(5, OUTPUT); // 245/210 Tool Select | |
pinMode(6, OUTPUT); // ToolChange Relay Set | |
pinMode(7, OUTPUT); // AN115A Relay Set | |
pinMode(8, OUTPUT); // NT115A Relay Set |
This file contains 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 state230V = 0; | |
byte oldstate230V = 0; | |
byte stateREG = 0; | |
byte oldstateREG = 0; | |
byte stateCURR = 0; | |
byte oldstateCURR = 0; | |
byte stateEARTH = 0; | |
byte oldstateEARTH = 0; | |
byte stateOUT = 0; | |
byte oldstateOUT = 0; |
This file contains 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 holdPin = 4; // defines GPIO 4 as the hold pin (will hold ESP-12F enable pin high untill we power down) | |
#include <ESP8266WiFi.h> | |
const char* ssid = "Wifi_name"; // Enter the SSID of your WiFi Network. | |
const char* password = "Wifi_pass";// Enter the Password of your WiFi Network. | |
char server[] = "mail.smtp2go.com"; // The SMTP Server | |
WiFiClient espClient; | |
void setup() |