Skip to content

Instantly share code, notes, and snippets.

View cynthiahenaff's full-sized avatar

Cynthia Henaff cynthiahenaff

View GitHub Profile
@cynthiahenaff
cynthiahenaff / connectedTemperatureSensor.ino
Last active March 1, 2020 20:17
Connected temperature sensor
#define BLYNK_PRINT Serial
#include "Adafruit_SHT31.h"
#include <Adafruit_SSD1306.h>
#include <BlynkSimpleEsp8266.h>
Adafruit_SSD1306 display(-1);
Adafruit_SHT31 sht30 = Adafruit_SHT31();
@cynthiahenaff
cynthiahenaff / temperatureSensor.ino
Last active March 1, 2020 20:19
Temperature Sensor
#include "Adafruit_SHT31.h"
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display(-1);
Adafruit_SHT31 sht30 = Adafruit_SHT31();
void setup() {
Serial.begin(9600);
@cynthiahenaff
cynthiahenaff / SSD1306.ino
Last active March 1, 2020 20:20
Oled Display
#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 March 1, 2020 20:20
Simple example for the SHT30
#include "Adafruit_SHT31.h"
Adafruit_SHT31 sht30 = Adafruit_SHT31();
void setup() {
Serial.begin(9600);
while (!Serial)
delay(10); // will pause until serial console opens