From 9d3d1a0d06e1678a16f75bdf2e312ea75d1d58d1 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 9 Aug 2019 11:53:31 +0700 Subject: [PATCH] Seperate configuration to config.h --- WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino | 8 +------- WaterishOS-minimal2.0/config.h | 5 +++++ 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 WaterishOS-minimal2.0/config.h diff --git a/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino b/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino index 34e7525..c001f1f 100644 --- a/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino +++ b/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino @@ -17,22 +17,16 @@ #include #include #include -#include #include #include #include - +#include "config.h" #include #include #include #include #include Adafruit_MCP23017 mcp; -String ssid = ""; -String password = ""; -byte InteruptPinA=1; -byte InteruptPinB=3; -byte arduinoInterrupt=1; long tslr=0; WiFiClient espClient; String nodename="devkit"; diff --git a/WaterishOS-minimal2.0/config.h b/WaterishOS-minimal2.0/config.h new file mode 100644 index 0000000..21fe2d3 --- /dev/null +++ b/WaterishOS-minimal2.0/config.h @@ -0,0 +1,5 @@ +const String ssid = ""; +const String password = ""; +const byte InteruptPinA=1; +const byte InteruptPinB=3; +const byte arduinoInterrupt=1;