From 61bfcb6e02f2da8c21a440ed6d4ea6b4aa372470 Mon Sep 17 00:00:00 2001 From: AK-Homberger <53138495+AK-Homberger@users.noreply.github.com> Date: Fri, 13 Dec 2019 16:10:07 +0100 Subject: [PATCH] Added definitions for certain 1306 OLED displays --- .../ArduinoPilotMicro433WindNG.ino | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/AP-Remote-Software/ArduinoPilotMicro433WindNG/ArduinoPilotMicro433WindNG.ino b/AP-Remote-Software/ArduinoPilotMicro433WindNG/ArduinoPilotMicro433WindNG.ino index 229b3ef..ae11c13 100644 --- a/AP-Remote-Software/ArduinoPilotMicro433WindNG/ArduinoPilotMicro433WindNG.ino +++ b/AP-Remote-Software/ArduinoPilotMicro433WindNG/ArduinoPilotMicro433WindNG.ino @@ -12,7 +12,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -// Version 1.2, 21.09.2019, AK-Homberger +// Version 1.3, 13.12.2019, AK-Homberger #include #include @@ -21,8 +21,12 @@ #include #include -#define OLED_RESET 4 -Adafruit_SSD1306 display(OLED_RESET); +#define SCREEN_WIDTH 128 // OLED display width, in pixels +#define SCREEN_HEIGHT 64 // OLED display height, in pixels + +// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) +#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin) +Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); #define Auto_Standby_Support 0 // Set this to 1 to support Standby and Auto for Key 5 and 6