2023-11-18 08:12:34 -06:00
|
|
|
#pragma once
|
|
|
|
|
#include <map>
|
|
|
|
|
|
2023-12-12 20:27:31 -06:00
|
|
|
enum configNames {
|
|
|
|
|
use_sx1262,
|
|
|
|
|
cs,
|
|
|
|
|
irq,
|
|
|
|
|
busy,
|
|
|
|
|
reset,
|
2024-01-12 02:00:31 -06:00
|
|
|
txen,
|
|
|
|
|
rxen,
|
2023-12-12 20:27:31 -06:00
|
|
|
dio2_as_rf_switch,
|
2024-01-12 02:00:31 -06:00
|
|
|
dio3_tcxo_voltage,
|
2023-12-12 20:27:31 -06:00
|
|
|
use_rf95,
|
2023-12-18 02:05:04 +02:00
|
|
|
use_sx1280,
|
2023-12-12 20:27:31 -06:00
|
|
|
user,
|
|
|
|
|
gpiochip,
|
2024-01-12 02:00:31 -06:00
|
|
|
spidev,
|
2023-12-12 20:27:31 -06:00
|
|
|
has_gps,
|
|
|
|
|
touchscreenModule,
|
|
|
|
|
touchscreenCS,
|
|
|
|
|
touchscreenIRQ,
|
|
|
|
|
displayPanel,
|
|
|
|
|
displayWidth,
|
|
|
|
|
displayHeight,
|
|
|
|
|
displayCS,
|
|
|
|
|
displayDC,
|
|
|
|
|
displayBacklight,
|
|
|
|
|
displayReset,
|
|
|
|
|
displayRotate,
|
2024-01-12 02:00:31 -06:00
|
|
|
displayOffsetX,
|
|
|
|
|
displayOffsetY,
|
|
|
|
|
displayInvert,
|
2024-01-22 01:27:06 -06:00
|
|
|
keyboardDevice,
|
|
|
|
|
debugmode
|
2023-12-12 20:27:31 -06:00
|
|
|
};
|
2024-01-12 02:00:31 -06:00
|
|
|
enum { no_screen, st7789, st7735, st7735s };
|
2023-12-12 20:27:31 -06:00
|
|
|
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;
|
2024-01-12 02:00:31 -06:00
|
|
|
int initGPIOPin(int pinNum, std::string gpioChipname);
|