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
/** | |
* This sketch recieves a message from the Master when rain is detected | |
* and starts a cascade on the NEOPIXELS to announce rain. | |
* It is always on and awaiting messages from the Master | |
* The sketch is based on work by Andreas Spiess and Anthony Elder | |
* It uses ESPNow to talk | |
* The light effect is from:https://www.tweaking4all.com/hardware/arduino/adruino-led-strip-effects/ | |
* A great site for most of my Neopixel effects...it is the last: Meteor Fall | |
* | |
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
/* | |
* | |
* This sketch sends a ESPNow message to an awaiting Rain Stick when rain hits the sensor--it brings | |
* the sensor to LOW on RainPin 14 when completed it sends a HIGH/LOW signal to the adafruit timer circuit | |
* to turn off the device. If it senses no rain no message is sent and it shuts the timer down. The sleep | |
* timer is hardware set on the Adafruit unit by adjusting the potentiometer for anywhere up to 2 hours. | |
* The program is a riff on Andreas Spiess and Anthony Elders work on ESPNow. | |
*/ | |
#include <ESP8266WiFi.h> |