From e0e7d65bb4f73deaeedb1dc3924bb638ec29b69d Mon Sep 17 00:00:00 2001 From: SpaceyKasey <87594618+SpaceyKasey@users.noreply.github.com> Date: Fri, 20 Jan 2023 21:31:59 -0500 Subject: [PATCH] Save before merging changes --- Graphics/MortseUi.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Graphics/MortseUi.h diff --git a/Graphics/MortseUi.h b/Graphics/MortseUi.h new file mode 100644 index 0000000..bd1c457 --- /dev/null +++ b/Graphics/MortseUi.h @@ -0,0 +1,38 @@ +#ifndef MORTSE_UI_H +#define MORTSE_UI_H + +#include +#include +#include +#include +#include + +#define SCREEN_WIDTH 128 // OLED display width, in pixels +#define SCREEN_HEIGHT 32 // OLED display height, in pixels + + +// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) +// The pins for I2C are defined by the Wire-library. +// On an arduino UNO: A4(SDA), A5(SCL) +// On an arduino MEGA 2560: 20(SDA), 21(SCL) +// On an arduino LEONARDO: 2(SDA), 3(SCL), ... +#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin) +#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32 +//Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); + +#define NUMFLAKES 10 // Number of snowflakes in the animation example + +#define LOGO_HEIGHT 16 +#define LOGO_WIDTH 16 +static const unsigned char PROGMEM + +class MortseUI{ + + private: + + public: + void Init(); + +} + +#endif \ No newline at end of file