modified: BME280_with_OLED --> Anpassungen an die neuesten Versionen der Adafruit Bibliotheken

master
chweber 6 years ago
parent baa4a36b0c
commit 23551069a8

@ -1,3 +1,5 @@
#include <Wire.h> #include <Wire.h>
#include <SPI.h> #include <SPI.h>
#include <stdio.h> #include <stdio.h>
@ -6,8 +8,13 @@
#include <Adafruit_GFX.h> #include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h> #include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET 4 #define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#define BME_SCK 13 #define BME_SCK 13
#define BME_MISO 12 #define BME_MISO 12

Loading…
Cancel
Save