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 "CayenneWiFi.h" | |
#include "CayenneWiFiClient.h" | |
#include "WiFiServer.h" | |
#include "WiFiUdp.h" | |
#include <SPI.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_ILI9341.h> | |
#include <PLDuino.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 <ConnectThings_ESP8266.h> | |
#include <Button.h> | |
#include <Drawable.h> | |
#include <GridLayout.h> | |
#include <Label.h> | |
#include <Layout.h> | |
#include <LinearLayout.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 <WiFi.h> | |
// #include <Adafruit_ESP8266.h> | |
#include "CayenneWiFi.h" | |
#include "CayenneWiFiClient.h" | |
// #include "WiFiServer.h" | |
// #include "WiFiUdp.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 <ESP8266_Lib.h> | |
// #include <WiFi.h> | |
// #include <Adafruit_ESP8266.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 "WiFiEsp.h" | |
// Emulate Serial1 on pins 6/7 if not present | |
#ifndef HAVE_HWSERIAL2 | |
#include "SoftwareSerial.h" | |
SoftwareSerial Serial2(6, 7); // RX, TX | |
#endif | |
char ssid[] = "free"; // your network SSID (name) | |
char pass[] = ""; // your network 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
/* | |
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
#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
//#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
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 |
OlderNewer