PicoLowLevel
Loading...
Searching...
No Matches
Display.h
Go to the documentation of this file.
1#ifndef Display_h
2#define Display_h
3
4#include <Wire.h>
5#include <Adafruit_GFX.h>
6#include <Adafruit_SH110X.h>
7#include <WiFi.h>
8
9#include "definitions.h"
10#include "bitmap_logos.h"
11#include "mod_config.h"
12#include "Battery.h"
13
17class Display {
18public:
19 Display();
20 void begin();
21
22 void handleGUI();
23 void okInterrupt();
24 void navInterrupt();
25
26private:
27 void showLogo();
28 void showWifi();
29 void showBattery();
30 void showVersion();
31
32 Adafruit_SH1106G display = Adafruit_SH1106G(DISPLAY_WIDTH, DISPLAY_HEIGHT, &Wire1, -1);
33
34 //menu handling variables
35 int ok = 0;
36 int lastok = 0;
37 int nav = 0;
38 int lastnav = 0;
39 int menupos = 0;
40 int menutime = 0;
41};
42
43#endif
Display class, handles display itself and GUI.
Definition Display.h:17
void handleGUI()
Handles display via recorded interrupts.
Definition Display.cpp:70
void navInterrupt()
NAV button ISR.
Definition Display.cpp:103
void okInterrupt()
OK button ISR.
Definition Display.cpp:115
void begin()
Definition Display.cpp:11
Display()
Definition Display.cpp:3
#define DISPLAY_HEIGHT
Definition definitions.h:58
#define DISPLAY_WIDTH
Definition definitions.h:57