Browse Source

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

master
chweber 1 year ago
parent
commit
23551069a8
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      BME280_with_OLED/BME280_with_OLED.ino

+ 8
- 1
BME280_with_OLED/BME280_with_OLED.ino View File

@@ -1,3 +1,5 @@


#include <Wire.h>
#include <SPI.h>
#include <stdio.h>
@@ -6,8 +8,13 @@
#include <Adafruit_GFX.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
Adafruit_SSD1306 display(OLED_RESET);

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);


#define BME_SCK 13
#define BME_MISO 12

Loading…
Cancel
Save