Skip to content

Instantly share code, notes, and snippets.

View raspberrycoulis's full-sized avatar

Wesley Archer raspberrycoulis

View GitHub Profile
@raspberrycoulis
raspberrycoulis / BME280-ESP32-DeepSleep.cpp
Created February 17, 2021 14:22 — forked from Schm1tz1/BME280-ESP32-DeepSleep.cpp
Low-Power-Arduino Sketch for a simple weather station using ESP32 with DeepSleep and BME280 that can be powered by a small battery.The ESP is waking up every SLEEP_IN_US microseconds, reading the sensor and going to sleep again.
//
// ESP32 in DeepSleep reading a BME280 every few seconds
//
#include <Arduino.h>
#include <Wire.h>
#include <HardwareSerial.h>
#include <Adafruit_BME280.h>
#define SERIAL_BAUD 9600