Skip to content

Instantly share code, notes, and snippets.

Avatar

Cynthia Henaff cynthiahenaff

View GitHub Profile
@cynthiahenaff
cynthiahenaff / connectedTemperatureSensor.ino
Last active Mar 1, 2020
Connected temperature sensor
View connectedTemperatureSensor.ino
#define BLYNK_PRINT Serial
#include "Adafruit_SHT31.h"
#include <Adafruit_SSD1306.h>
#include <BlynkSimpleEsp8266.h>
Adafruit_SSD1306 display(-1);
Adafruit_SHT31 sht30 = Adafruit_SHT31();
View temperatureSensor.ino
#include "Adafruit_SHT31.h"
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display(-1);
Adafruit_SHT31 sht30 = Adafruit_SHT31();
void setup() {
Serial.begin(9600);
View SSD1306.ino
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display(-1);
void setup() {
Serial.begin(9600);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3C (for the 64x48)
// init done
@cynthiahenaff
cynthiahenaff / sht30.ino
Last active Mar 1, 2020
Simple example for the SHT30
View sht30.ino
#include "Adafruit_SHT31.h"
Adafruit_SHT31 sht30 = Adafruit_SHT31();
void setup() {
Serial.begin(9600);
while (!Serial)
delay(10); // will pause until serial console opens