#ifndef VAR_DEF_h #define VAR_DEF_h #include "Arduino.h" //User definition /* - set to 0 for user 1 - set to 1 for user 2 */ #define USER 0 //Wifi related declarations #define WIFI_SSID ((const String) "vf300-62bc4c-g") #define WIFI_PWD ((const String) "34e9b829d3e57") //Read and Write API keys of the Thingspeak channel #define CHANNEL_1 ((const String) "126873") #define WRITE_API_KEY_1 ((const String)"H17BIU0I5BHM33LW") #define CHANNEL_2 ((const String)"159888") #define WRITE_API_KEY_2 ((const String)"YC2XRJC1BRSFEZ3O") //Led pin definition #define LED_1 10 #define LED_2 5 #define LED_3 6 #define LED_4 7 #define LED_5 8 #define LED_6 9 //Button pin definition #define BUTTON_1 12 #define BUTTON_2 3 #define BUTTON_3 19 #define BUTTON_4 18 #define BUTTON_5 17 #define BUTTON_6 16 //ESP Reset #define ESP_RESET 12 //Arduino Rx/Tx definition (change if using Soft Serial) #define RX 0 #define TX 1 //channel to write to and channel to read from is assignated depending on the user #if USER #define CHANNEL CHANNEL_1 #define WRITE_API_KEY WRITE_API_KEY_2 #endif #if !USER #define CHANNEL CHANNEL_2 #define WRITE_API_KEY WRITE_API_KEY_1 #endif #endif