2023-11-18 08:12:34 -06:00
|
|
|
#pragma once
|
|
|
|
|
#ifdef ARCH_RASPBERRY_PI
|
|
|
|
|
#include <map>
|
|
|
|
|
|
2023-12-12 20:27:31 -06:00
|
|
|
enum configNames {
|
|
|
|
|
use_sx1262,
|
|
|
|
|
cs,
|
|
|
|
|
irq,
|
|
|
|
|
busy,
|
|
|
|
|
reset,
|
|
|
|
|
dio2_as_rf_switch,
|
|
|
|
|
use_rf95,
|
2023-12-18 02:05:04 +02:00
|
|
|
use_sx1280,
|
2023-12-12 20:27:31 -06:00
|
|
|
user,
|
|
|
|
|
gpiochip,
|
|
|
|
|
has_gps,
|
|
|
|
|
touchscreenModule,
|
|
|
|
|
touchscreenCS,
|
|
|
|
|
touchscreenIRQ,
|
|
|
|
|
displayPanel,
|
|
|
|
|
displayWidth,
|
|
|
|
|
displayHeight,
|
|
|
|
|
displayCS,
|
|
|
|
|
displayDC,
|
|
|
|
|
displayBacklight,
|
|
|
|
|
displayReset,
|
|
|
|
|
displayRotate,
|
|
|
|
|
keyboardDevice
|
|
|
|
|
};
|
|
|
|
|
enum { no_screen, st7789 };
|
|
|
|
|
enum { no_touchscreen, xpt2046 };
|
2023-11-18 08:12:34 -06:00
|
|
|
|
2023-12-12 20:27:31 -06:00
|
|
|
extern std::map<configNames, int> settingsMap;
|
|
|
|
|
extern std::map<configNames, std::string> settingsStrings;
|
2023-11-26 21:29:19 -06:00
|
|
|
int initGPIOPin(int pinNum, std::string gpioChipname);
|
2023-11-18 08:12:34 -06:00
|
|
|
|
2023-12-18 02:05:04 +02:00
|
|
|
#endif
|