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
###################################################################### | |
# Particle-cli setup script for Raspberry Pi | |
# by bprobbins | |
# Code leans heavily on audstanley's excellent nodejs installer: | |
# https://github.com/audstanley/NodeJs-Raspberry-Pi | |
# | |
# Run this installer in your home (usually pi) directory. | |
# In your home directory, enter the following in your terminal: | |
# sudo bash particle-cli-setup.sh | |
# Once running, please don't interrupt the script. It can take awhile |
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
//Spurpleair.ino - code to display pm2_5 air concentration | |
//as reported by one selected purpleair community sensor | |
//Would be nice if possible to average over several sensors and also | |
//if use of Strings could be eliminated in HttpClient library | |
#include <Particle.h> | |
#include <clickButton.h> | |
#include <HttpClient.h> | |
#include <sampledata.h> | |
#include <math.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 <Particle.h> | |
#include <LoRa.h> //https://github.com/sandeepmistry/arduino-LoRa | |
/* | |
#define RFM95_CS A2 | |
#define RFM95_RST D4 | |
#define RFM95_INT D2 | |
*/ | |
#define RF95_FREQ 915.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
//Employs Particle Xenon, Adafruit Ultimate GPS Feather, | |
//and Adafruit RF95 Feather Radio | |
#include <Adafruit_GPS.h> | |
#include <Particle.h> | |
#include <SPI.h> | |
#include <LoRa.h> //https://github.com/sandeepmistry/arduino-LoRa | |
SYSTEM_MODE(MANUAL); | |
SYSTEM_THREAD(ENABLED); |
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
/* | |
Basic client for Adafruit Feather LoRa radios. | |
This is based on the RadioHead library for RF95, but has all | |
the required pins and setup for Feather LoRa's. | |
NOTE: You need to select a unique radio address for this to work | |
*/ | |
#include <Adafruit_GPS.h> | |
#include <RHReliableDatagram.h> | |
#include <RH_RF95.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 <Adafruit_GPS.h> | |
#include <RF9X-RK.h> //https://github.com/rickkas7/RF9X-RK | |
#include <RHReliableDatagram.h> | |
#include <RH_RF95.h> | |
#include <SPI.h> | |
#define CLIENT_ADDRESS 1 | |
#define SERVER_ADDRESS 2 | |
#define RFM95_CS D6 |
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 <RF9X-RK.h> //https://github.com/rickkas7/RF9X-RK | |
#include <RHReliableDatagram.h> | |
#include <RH_RF95.h> | |
#include <SPI.h> | |
#define CLIENT_ADDRESS 1 | |
#define SERVER_ADDRESS 2 |
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 <Particle.h> | |
#include <RF9X-RK.h> //https://github.com/rickkas7/RF9X-RK | |
#include <RHReliableDatagram.h> | |
#include <RH_RF95.h> | |
#include <SPI.h> | |
#define CLIENT_ADDRESS 1 | |
#define SERVER_ADDRESS 2 |