PlatformIO
This commit is contained in:
@@ -25,6 +25,8 @@ int ledCount = 4; // Aantal aangesloten LED's (of LED-arrays)
|
||||
int delayPot = A5; // Ingang potmeter
|
||||
// Bepalingen Display
|
||||
#define OLED_ADDR 60 // 60 = 0x3C / 61 = 0x3D
|
||||
#define SCREEN_WIDTH 128 // OLED-scherm breedte, in pixels
|
||||
#define SCREEN_HEIGHT 64 // OLED-scherm hoogte, in pixels
|
||||
#define OLED_RESET 4
|
||||
|
||||
// Aanmaken benodigde variabelen
|
||||
@@ -32,7 +34,7 @@ int temp0;
|
||||
int currentLedPwmDisp;
|
||||
|
||||
// Initialisatie Adafruit_SSD1306
|
||||
Adafruit_SSD1306 display(OLED_RESET);
|
||||
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
|
||||
|
||||
void setup() {
|
||||
// Start Display
|
||||
@@ -107,4 +109,4 @@ void loop() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user