Refactor display handling add Raspbian TFT display (#2998)

* Refactor display handling add Raspbian TFT display

* Add missed change

* Add static casts

* Add missed TFT refactor for RAK14014

* Add missed GPIO configuration

* Adds Native keyboard input option

* Get the ifdefs right

* CannedMessage send via queue, not run immediately.

* Fixup systemd service file

* Add display blanking for Raspberry Pi

* Add a couple missed key definitions

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Jonathan Bennett
2023-12-12 20:27:31 -06:00
committed by GitHub
parent d14d2c89c3
commit 2ebaea317a
21 changed files with 682 additions and 131 deletions

View File

@@ -2,9 +2,35 @@
#ifdef ARCH_RASPBERRY_PI
#include <map>
extern std::map<int, int> settingsMap;
enum configNames {
use_sx1262,
cs,
irq,
busy,
reset,
dio2_as_rf_switch,
use_rf95,
user,
gpiochip,
has_gps,
touchscreenModule,
touchscreenCS,
touchscreenIRQ,
displayPanel,
displayWidth,
displayHeight,
displayCS,
displayDC,
displayBacklight,
displayReset,
displayRotate,
keyboardDevice
};
enum { no_screen, st7789 };
enum { no_touchscreen, xpt2046 };
enum { use_sx1262, cs, irq, busy, reset, dio2_as_rf_switch, use_rf95, user, gpiochip, has_gps };
extern std::map<configNames, int> settingsMap;
extern std::map<configNames, std::string> settingsStrings;
int initGPIOPin(int pinNum, std::string gpioChipname);
#endif