Fixed OLED init to match latest Adafruit_SSD1306 library update.

This commit is contained in:
2018-12-13 20:26:26 +00:00
parent f3ab7adf06
commit 466a748e46
2 changed files with 12 additions and 9 deletions

View File

@@ -14,7 +14,10 @@ Wed 24 Jan 23:11:25 GMT 2018
#include <Adafruit_SSD1306.h>
#define OLED_RESET 8
Adafruit_SSD1306 display(OLED_RESET); // Create display object for OLED display
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 56 // OLED display height, in pixels
// create display object for oled display
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#define ON 0 // ON means pin is on GND
#define OFF 1 // OFF means pin is on VCC
@@ -190,7 +193,7 @@ ISR(TIMER1_COMPA_vect)
}
if (!rCANCEL) { // If button OK pressed
if (!rCANCEL) // If button OK pressed
{
if (prevMenu == 1) // and the prevMenu is 1
{