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
/************************************************************* | |
Wemos Lolin32 Lite (ESP32) | |
Plant monitoring example | |
by Petr Lukas | |
Simple device setup, which allows to monitor temperature, | |
moisture, air pressure, light level and soil moisture | |
************************************************************* | |
BLYNK LIBRARY |
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 <SPI.h> | |
#include <Wire.h> | |
#include <SFE_MicroOLED.h> | |
#define PIN_RESET 255 | |
#define DC_JUMPER 0 | |
int i; | |
int moi = 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
/************************************************************* | |
Wemos Lolin D32 PRO (ESP32) | |
Basic demo | |
by Petr Lukas | |
*************************************************************/ | |
#include <Adafruit_GFX.h> // Core graphics library | |
#include <Adafruit_ST7735.h> // Hardware-specific library | |
#include <WEMOS_SHT3X.h> // SHT30 library | |
#include <SPI.h> | |
#include <SD.h> // SD card library |
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
/************************************************************* | |
Wemos Lolin D1 PRO (ESP8266) | |
Basic demo | |
by Petr Lukas | |
*************************************************************/ | |
// Install Adafruit_NeoPixel library https://github.com/adafruit/Adafruit_NeoPixel first | |
#include <Adafruit_NeoPixel.h> | |
#include <Wire.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
// Install https://github.com/wemos/WEMOS_DHT12_Arduino_Library first | |
#include <WEMOS_DHT12.h> | |
DHT12 dht12; | |
void setup() { | |
Serial.begin(115200); | |
} |
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
/************************************************************* | |
Wemos Lolin D32 PRO (ESP32) NTP | |
Basic demo | |
by Petr Lukas | |
*************************************************************/ | |
/* | |
Based on script | |
by Michael Margolis | |
modified 9 Apr 2012 | |
by Tom Igoe |
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 <HTTPClient.h> | |
#include <ArduinoJson.h> | |
#include <TM1637Display.h> | |
#define CLK 32 | |
#define DIO 33 | |
const uint8_t CELSIUS[] = {SEG_A | SEG_D | SEG_E | SEG_F}; | |
const uint8_t MINUS[] = {SEG_G}; |
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 <GxEPD.h> | |
#include <GxGDEP015OC1/GxGDEP015OC1.cpp> | |
#include <Fonts/OpenSansBold12pt7b.h> | |
#include <Fonts/OpenSansBold14pt7b.h> | |
#include <Fonts/OpenSansBold30pt7b.h> | |
#include <GxIO/GxIO_SPI/GxIO_SPI.cpp> | |
#include <GxIO/GxIO.cpp> | |
#include GxEPD_BitmapExamples |
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
/************************************************************* | |
Philips Hue @ Wemos D1 mini (ESP8266) | |
Basic demo of PIR and ambient light sensor to demonstrate | |
communication between ESP and Hue gateway | |
by Petr Lukas | |
Functionality: | |
Sensor activates the light only in case certain level of light is detected | |
(by default less than 100 lx). If the ambient light sensor light level exceeds the set value, |
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
/************************************************************* | |
Hue @ D1 mini Pro (ESP8266) | |
Basic demo of switch based on IR sensor to demonstrate | |
communication between ESP and Hue gateway | |
Version: 1.00 | |
by Petr Lukas | |
Functionality: | |
Identify IR signal and switch light on and off using IR remote control. | |
*************************************************************/ |