From 23551069a85068ab143979f1a3fa68eeba9e9b06 Mon Sep 17 00:00:00 2001 From: chweber Date: Sun, 13 Jan 2019 14:35:41 +0100 Subject: [PATCH] modified: BME280_with_OLED --> Anpassungen an die neuesten Versionen der Adafruit Bibliotheken --- BME280_with_OLED/BME280_with_OLED.ino | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BME280_with_OLED/BME280_with_OLED.ino b/BME280_with_OLED/BME280_with_OLED.ino index ce2084b..a33724f 100644 --- a/BME280_with_OLED/BME280_with_OLED.ino +++ b/BME280_with_OLED/BME280_with_OLED.ino @@ -1,3 +1,5 @@ + + #include #include #include @@ -6,8 +8,13 @@ #include #include + +#define SCREEN_WIDTH 128 // OLED display width, in pixels +#define SCREEN_HEIGHT 64 // OLED display height, in pixels #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_MISO 12