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
//Credit Electronic Clinic for inspiring this code. Basic code written by Electronic Clinic. Expanded and appended by me. | |
//This is a combination of 2 codes for use with the Stone 10.1 HMI | |
#include <SoftwareSerial.h> | |
SoftwareSerial max232(2,3); | |
#define Sensor1_H 0x00 | |
#define Sensor1_L 0x08 | |
#define Sensor2_H 0x00 | |
#define Sensor2_L 0x09 |
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
#include <Button.h> | |
#include <Drawable.h> | |
#include <GridLayout.h> | |
#include <Label.h> | |
#include <Layout.h> | |
#include <LinearLayout.h> | |
#include <Placeholder.h> | |
#include <PLDuinoGUI.h> | |
#include <Settings.h> | |
#include <Sizable.h> |
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
#include <CayenneMQTTESP8266Shield.h> | |
#include <SPI.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_ILI9341.h> | |
#include <PLDuino.h> | |
#include <PLDTouch.h> | |
#include <PLDuinoGUI.h> | |
#include <using_namespace_PLDuinoGUI.h> | |
#include <DS3232RTC.h> | |
#include <TimeLib.h> |
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
#include <CayenneMQTTESP8266Shield.h> | |
#include <SPI.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_ILI9341.h> | |
#include <PLDuino.h> | |
#include <PLDTouch.h> | |
#include <PLDuinoGUI.h> | |
#include <using_namespace_PLDuinoGUI.h> | |
#include <DS3232RTC.h> | |
#include <TimeLib.h> |
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
#include <CayenneESP8266Shield.h> | |
#include <TMRpcm_PLDuino.h> | |
#include <SPI.h> | |
#include <SD.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_ILI9341.h> | |
#include <PLDuino.h> | |
#include <PLDTouch.h> | |
#include <PLDuinoGUI.h> | |
#include <using_namespace_PLDuinoGUI.h> |
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
//#define CAYENNE_DEBUG // Uncomment to show debug messages | |
//#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space | |
#include <CayenneESP8266Shield.h> | |
#include <TMRpcm_PLDuino.h> | |
#include <SPI.h> | |
#include <SD.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_ILI9341.h> | |
#include <PLDuino.h> | |
#include <PLDTouch.h> |
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
#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space | |
#include <CayenneMQTTESP8266.h> | |
// WiFi network info. | |
char ssid[] = “********”; | |
char wifiPassword[] = “*******”; | |
// Cayenne authentication info. This should be obtained from the Cayenne Dashboard. | |
char username[] = “"; | |
char password[] = "”; |
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
/* | |
Cayenne ESP8266 Shield WiFi Example | |
Adapted from Blynk's ESP8266_Shield_HardSer Example | |
This sketch connects to the Cayenne server using an ESP8266 WiFi module as a shield connected | |
via a hardware serial to an Arduino. | |
You should install the ESP8266HardwareSerial.zip library via the Arduino IDE (Sketch->Include Library->Add .ZIP Library) | |
from the Cayenne extras/libraries folder (e.g. My Documents\Arduino\libraries\Cayenne\extras\libraries) to compile this example. |
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
import os | |
import time | |
import sys | |
# Import the modules to send commands to the system and access GPIO pins | |
from subprocess import call | |
import RPi.GPIO as gpio | |
from time import sleep | |
from os import system | |
gpio.setmode(gpio.BCM) # Set pin numbering to BCM numbering |
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
/* | |
Cayenne ESP8266 Shield WiFi Example | |
Adapted from Blynk's ESP8266_Shield_HardSer Example | |
This sketch connects to the Cayenne server using an ESP8266 WiFi module as a shield connected | |
via a hardware serial to an Arduino. | |
You should install the ESP8266HardwareSerial.zip library via the Arduino IDE (Sketch->Include Library->Add .ZIP Library) | |
from the Cayenne extras/libraries folder (e.g. My Documents\Arduino\libraries\Cayenne\extras\libraries) to compile this example. |
NewerOlder