mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-22 07:10:47 -08:00
Start bringing features to ILI9341
This commit is contained in:
@@ -222,10 +222,11 @@ void Display::tftDrawChannelScaleButtons(int set_channel)
|
|||||||
key[5].drawButton();
|
key[5].drawButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Display::tftDrawExitScaleButtons()
|
void Display::tftDrawExitScaleButtons(bool lnd_an)
|
||||||
{
|
{
|
||||||
//tft.drawFastVLine(178, 0, 20, TFT_WHITE);
|
//tft.drawFastVLine(178, 0, 20, TFT_WHITE);
|
||||||
//tft.setCursor(145, 21); tft.setTextColor(TFT_WHITE); tft.setTextSize(1); tft.print("Channel:"); tft.print(set_channel);
|
//tft.setCursor(145, 21); tft.setTextColor(TFT_WHITE); tft.setTextSize(1); tft.print("Channel:"); tft.print(set_channel);
|
||||||
|
if (lnd_an) {
|
||||||
|
|
||||||
key[6].initButton(&tft, // Exit box
|
key[6].initButton(&tft, // Exit box
|
||||||
137,
|
137,
|
||||||
@@ -237,6 +238,20 @@ void Display::tftDrawExitScaleButtons()
|
|||||||
TFT_BLACK, // Text
|
TFT_BLACK, // Text
|
||||||
"X",
|
"X",
|
||||||
2);
|
2);
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
key[6].initButton(&tft, // Exit box
|
||||||
|
EXT_BUTTON_WIDTH / 2,
|
||||||
|
(STATUS_BAR_WIDTH * 2) + CHAR_WIDTH - 1, // x, y, w, h, outline, fill, text
|
||||||
|
EXT_BUTTON_WIDTH,
|
||||||
|
EXT_BUTTON_WIDTH,
|
||||||
|
TFT_ORANGE, // Outline
|
||||||
|
TFT_RED, // Fill
|
||||||
|
TFT_BLACK, // Text
|
||||||
|
"X",
|
||||||
|
2);
|
||||||
|
}
|
||||||
|
|
||||||
key[6].setLabelDatum(1, 5, MC_DATUM);
|
key[6].setLabelDatum(1, 5, MC_DATUM);
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class Display
|
|||||||
void tftDrawXScaleButtons(byte x_scale);
|
void tftDrawXScaleButtons(byte x_scale);
|
||||||
void tftDrawYScaleButtons(byte y_scale);
|
void tftDrawYScaleButtons(byte y_scale);
|
||||||
void tftDrawChannelScaleButtons(int set_channel);
|
void tftDrawChannelScaleButtons(int set_channel);
|
||||||
void tftDrawExitScaleButtons();
|
void tftDrawExitScaleButtons(bool lnd_an = false);
|
||||||
void buildBanner(String msg, int xpos);
|
void buildBanner(String msg, int xpos);
|
||||||
void clearScreen();
|
void clearScreen();
|
||||||
void displayBuffer(bool do_clear = false);
|
void displayBuffer(bool do_clear = false);
|
||||||
|
|||||||
@@ -321,14 +321,17 @@ MenuFunctions::MenuFunctions()
|
|||||||
list_btn = lv_list_add_btn(list1, LV_SYMBOL_CLOSE, text09);
|
list_btn = lv_list_add_btn(list1, LV_SYMBOL_CLOSE, text09);
|
||||||
lv_obj_set_event_cb(list_btn, ap_list_cb);
|
lv_obj_set_event_cb(list_btn, ap_list_cb);
|
||||||
|
|
||||||
if (type == "AP") {
|
if ((type == "AP") || (type == "AP Info")) {
|
||||||
for (int i = 0; i < access_points->size(); i++) {
|
for (int i = 0; i < access_points->size(); i++) {
|
||||||
char buf[access_points->get(i).essid.length() + 1] = {};
|
char buf[access_points->get(i).essid.length() + 1] = {};
|
||||||
access_points->get(i).essid.toCharArray(buf, access_points->get(i).essid.length() + 1);
|
access_points->get(i).essid.toCharArray(buf, access_points->get(i).essid.length() + 1);
|
||||||
|
|
||||||
list_btn = lv_list_add_btn(list1, LV_SYMBOL_WIFI, buf);
|
list_btn = lv_list_add_btn(list1, LV_SYMBOL_WIFI, buf);
|
||||||
lv_btn_set_checkable(list_btn, true);
|
lv_btn_set_checkable(list_btn, true);
|
||||||
|
if (type == "AP")
|
||||||
lv_obj_set_event_cb(list_btn, ap_list_cb);
|
lv_obj_set_event_cb(list_btn, ap_list_cb);
|
||||||
|
else if (type == "AP Info")
|
||||||
|
lv_obj_set_event_cb(list_btn, ap_info_list_cb);
|
||||||
|
|
||||||
if (access_points->get(i).selected)
|
if (access_points->get(i).selected)
|
||||||
lv_btn_toggle(list_btn);
|
lv_btn_toggle(list_btn);
|
||||||
@@ -474,6 +477,43 @@ MenuFunctions::MenuFunctions()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ap_info_list_cb(lv_obj_t * btn, lv_event_t event) {
|
||||||
|
extern LinkedList<AccessPoint>* access_points;
|
||||||
|
extern MenuFunctions menu_function_obj;
|
||||||
|
extern WiFiScan wifi_scan_obj;
|
||||||
|
|
||||||
|
String btn_text = lv_list_get_btn_text(btn);
|
||||||
|
String display_string = "";
|
||||||
|
|
||||||
|
// Exit function
|
||||||
|
if (event == LV_EVENT_CLICKED) {
|
||||||
|
if (btn_text != text09) {
|
||||||
|
for (int i = 0; i < access_points->size(); i++) {
|
||||||
|
if (access_points->get(i).essid == btn_text) {
|
||||||
|
lv_obj_del_async(lv_obj_get_parent(lv_obj_get_parent(btn)));
|
||||||
|
|
||||||
|
printf("LV_EVENT_CANCEL\n");
|
||||||
|
menu_function_obj.deinitLVGL();
|
||||||
|
wifi_scan_obj.StartScan(WIFI_SCAN_OFF);
|
||||||
|
//display_obj.exit_draw = true; // set everything back to normal
|
||||||
|
menu_function_obj.orientDisplay();
|
||||||
|
menu_function_obj.changeMenu(&menu_function_obj.apInfoMenu);
|
||||||
|
wifi_scan_obj.RunAPInfo(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Serial.println("Exiting...");
|
||||||
|
lv_obj_del_async(lv_obj_get_parent(lv_obj_get_parent(btn)));
|
||||||
|
|
||||||
|
printf("LV_EVENT_CANCEL\n");
|
||||||
|
menu_function_obj.deinitLVGL();
|
||||||
|
wifi_scan_obj.StartScan(WIFI_SCAN_OFF);
|
||||||
|
display_obj.exit_draw = true; // set everything back to normal
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MenuFunctions::addSSIDGFX(){
|
void MenuFunctions::addSSIDGFX(){
|
||||||
extern LinkedList<ssid>* ssids;
|
extern LinkedList<ssid>* ssids;
|
||||||
|
|
||||||
@@ -1600,6 +1640,12 @@ void MenuFunctions::RunSetup()
|
|||||||
this->drawStatusBar();
|
this->drawStatusBar();
|
||||||
wifi_scan_obj.StartScan(WIFI_SCAN_DEAUTH, TFT_RED);
|
wifi_scan_obj.StartScan(WIFI_SCAN_DEAUTH, TFT_RED);
|
||||||
});
|
});
|
||||||
|
this->addNodes(&wifiSnifferMenu, "Packet Count", TFTORANGE, NULL, PACKET_MONITOR, [this]() {
|
||||||
|
display_obj.clearScreen();
|
||||||
|
this->drawStatusBar();
|
||||||
|
wifi_scan_obj.StartScan(WIFI_SCAN_PACKET_RATE, TFT_ORANGE);
|
||||||
|
wifi_scan_obj.renderPacketRate();
|
||||||
|
});
|
||||||
#ifdef HAS_ILI9341
|
#ifdef HAS_ILI9341
|
||||||
this->addNodes(&wifiSnifferMenu, text_table1[46], TFTVIOLET, NULL, EAPOL, [this]() {
|
this->addNodes(&wifiSnifferMenu, text_table1[46], TFTVIOLET, NULL, EAPOL, [this]() {
|
||||||
wifi_scan_obj.StartScan(WIFI_SCAN_EAPOL, TFT_VIOLET);
|
wifi_scan_obj.StartScan(WIFI_SCAN_EAPOL, TFT_VIOLET);
|
||||||
@@ -1624,12 +1670,12 @@ void MenuFunctions::RunSetup()
|
|||||||
this->renderGraphUI(WIFI_SCAN_CHAN_ANALYZER);
|
this->renderGraphUI(WIFI_SCAN_CHAN_ANALYZER);
|
||||||
wifi_scan_obj.StartScan(WIFI_SCAN_CHAN_ANALYZER, TFT_CYAN);
|
wifi_scan_obj.StartScan(WIFI_SCAN_CHAN_ANALYZER, TFT_CYAN);
|
||||||
});
|
});
|
||||||
this->addNodes(&wifiSnifferMenu, "Packet Count", TFTORANGE, NULL, PACKET_MONITOR, [this]() {
|
/*this->addNodes(&wifiSnifferMenu, "Packet Count", TFTORANGE, NULL, PACKET_MONITOR, [this]() {
|
||||||
display_obj.clearScreen();
|
display_obj.clearScreen();
|
||||||
this->drawStatusBar();
|
this->drawStatusBar();
|
||||||
wifi_scan_obj.StartScan(WIFI_SCAN_PACKET_RATE, TFT_ORANGE);
|
wifi_scan_obj.StartScan(WIFI_SCAN_PACKET_RATE, TFT_ORANGE);
|
||||||
wifi_scan_obj.renderPacketRate();
|
wifi_scan_obj.renderPacketRate();
|
||||||
});
|
});*/
|
||||||
this->addNodes(&wifiSnifferMenu, text_table1[58], TFTWHITE, NULL, PACKET_MONITOR, [this]() {
|
this->addNodes(&wifiSnifferMenu, text_table1[58], TFTWHITE, NULL, PACKET_MONITOR, [this]() {
|
||||||
display_obj.clearScreen();
|
display_obj.clearScreen();
|
||||||
this->drawStatusBar();
|
this->drawStatusBar();
|
||||||
@@ -1793,6 +1839,10 @@ void MenuFunctions::RunSetup()
|
|||||||
wifi_scan_obj.StartScan(LV_ADD_SSID, TFT_RED);
|
wifi_scan_obj.StartScan(LV_ADD_SSID, TFT_RED);
|
||||||
selectEPHTMLGFX();
|
selectEPHTMLGFX();
|
||||||
});
|
});
|
||||||
|
apInfoMenu.parentMenu = &wifiGeneralMenu;
|
||||||
|
this->addNodes(&apInfoMenu, text09, TFTLIGHTGREY, NULL, 0, [this]() {
|
||||||
|
this->changeMenu(apInfoMenu.parentMenu);
|
||||||
|
});
|
||||||
#else // Mini EP HTML select
|
#else // Mini EP HTML select
|
||||||
this->addNodes(&wifiGeneralMenu, "Select EP HTML File", TFTCYAN, NULL, KEYBOARD_ICO, [this](){
|
this->addNodes(&wifiGeneralMenu, "Select EP HTML File", TFTCYAN, NULL, KEYBOARD_ICO, [this](){
|
||||||
// Add the back button
|
// Add the back button
|
||||||
@@ -1946,6 +1996,15 @@ void MenuFunctions::RunSetup()
|
|||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAS_ILI9341
|
||||||
|
this->addNodes(&wifiGeneralMenu, "View AP Info", TFTLIGHTGREY, NULL, 0, [this]() {
|
||||||
|
display_obj.clearScreen();
|
||||||
|
wifi_scan_obj.currentScanMode = LV_ADD_SSID;
|
||||||
|
wifi_scan_obj.StartScan(LV_ADD_SSID, TFT_WHITE);
|
||||||
|
addAPGFX("AP Info");
|
||||||
|
});
|
||||||
|
#endif
|
||||||
|
|
||||||
this->addNodes(&wifiGeneralMenu, "Set MACs", TFTLIGHTGREY, NULL, 0, [this]() {
|
this->addNodes(&wifiGeneralMenu, "Set MACs", TFTLIGHTGREY, NULL, 0, [this]() {
|
||||||
this->changeMenu(&setMacMenu);
|
this->changeMenu(&setMacMenu);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ PROGMEM static void ta_event_cb(lv_obj_t * ta, lv_event_t event);
|
|||||||
PROGMEM static void add_ssid_keyboard_event_cb(lv_obj_t * keyboard, lv_event_t event);
|
PROGMEM static void add_ssid_keyboard_event_cb(lv_obj_t * keyboard, lv_event_t event);
|
||||||
PROGMEM static void html_list_cb(lv_obj_t * btn, lv_event_t event);
|
PROGMEM static void html_list_cb(lv_obj_t * btn, lv_event_t event);
|
||||||
PROGMEM static void ap_list_cb(lv_obj_t * btn, lv_event_t event);
|
PROGMEM static void ap_list_cb(lv_obj_t * btn, lv_event_t event);
|
||||||
|
PROGMEM static void ap_info_list_cb(lv_obj_t * btn, lv_event_t event);
|
||||||
PROGMEM static void at_list_cb(lv_obj_t * btn, lv_event_t event);
|
PROGMEM static void at_list_cb(lv_obj_t * btn, lv_event_t event);
|
||||||
PROGMEM static void station_list_cb(lv_obj_t * btn, lv_event_t event);
|
PROGMEM static void station_list_cb(lv_obj_t * btn, lv_event_t event);
|
||||||
PROGMEM static void setting_dropdown_cb(lv_obj_t * btn, lv_event_t event);
|
PROGMEM static void setting_dropdown_cb(lv_obj_t * btn, lv_event_t event);
|
||||||
@@ -177,7 +178,6 @@ class MenuFunctions
|
|||||||
Menu htmlMenu;
|
Menu htmlMenu;
|
||||||
Menu miniKbMenu;
|
Menu miniKbMenu;
|
||||||
Menu saveFileMenu;
|
Menu saveFileMenu;
|
||||||
Menu apInfoMenu;
|
|
||||||
Menu genAPMacMenu;
|
Menu genAPMacMenu;
|
||||||
Menu cloneAPMacMenu;
|
Menu cloneAPMacMenu;
|
||||||
Menu setMacMenu;
|
Menu setMacMenu;
|
||||||
@@ -238,6 +238,7 @@ class MenuFunctions
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
Menu infoMenu;
|
Menu infoMenu;
|
||||||
|
Menu apInfoMenu;
|
||||||
|
|
||||||
Ticker tick;
|
Ticker tick;
|
||||||
|
|
||||||
|
|||||||
@@ -2153,7 +2153,7 @@ void WiFiScan::RunPacketMonitor(uint8_t scan_mode, uint16_t color)
|
|||||||
startPcap("packet_monitor");
|
startPcap("packet_monitor");
|
||||||
|
|
||||||
#ifdef HAS_ILI9341
|
#ifdef HAS_ILI9341
|
||||||
|
if (scan_mode != WIFI_SCAN_PACKET_RATE) {
|
||||||
#ifdef HAS_SCREEN
|
#ifdef HAS_SCREEN
|
||||||
display_obj.tft.init();
|
display_obj.tft.init();
|
||||||
display_obj.tft.setRotation(1);
|
display_obj.tft.setRotation(1);
|
||||||
@@ -2185,7 +2185,30 @@ void WiFiScan::RunPacketMonitor(uint8_t scan_mode, uint16_t color)
|
|||||||
display_obj.tftDrawChannelScaleButtons(set_channel);
|
display_obj.tftDrawChannelScaleButtons(set_channel);
|
||||||
display_obj.tftDrawExitScaleButtons();
|
display_obj.tftDrawExitScaleButtons();
|
||||||
#endif
|
#endif
|
||||||
#else
|
}
|
||||||
|
else {
|
||||||
|
display_obj.TOP_FIXED_AREA_2 = 48;
|
||||||
|
display_obj.tteBar = true;
|
||||||
|
display_obj.print_delay_1 = 15;
|
||||||
|
display_obj.print_delay_2 = 10;
|
||||||
|
display_obj.initScrollValues(true);
|
||||||
|
display_obj.tft.setTextWrap(false);
|
||||||
|
display_obj.tft.setTextColor(TFT_WHITE, color);
|
||||||
|
#ifdef HAS_FULL_SCREEN
|
||||||
|
display_obj.tft.fillRect(0,16,240,16, color);
|
||||||
|
if (scan_mode == WIFI_PACKET_MONITOR)
|
||||||
|
display_obj.tft.drawCentreString(text_table1[45],120,16,2);
|
||||||
|
else if (scan_mode == WIFI_SCAN_CHAN_ANALYZER)
|
||||||
|
display_obj.tft.drawCentreString("Channel Analyzer", 120, 16, 2);
|
||||||
|
else if (scan_mode == WIFI_SCAN_PACKET_RATE)
|
||||||
|
display_obj.tft.drawCentreString("Packet Rate", 120, 16, 2);
|
||||||
|
#endif
|
||||||
|
display_obj.tft.setTextColor(TFT_GREEN, TFT_BLACK);
|
||||||
|
display_obj.setupScrollArea(display_obj.TOP_FIXED_AREA_2, BOT_FIXED_AREA);
|
||||||
|
display_obj.tftDrawChannelScaleButtons(set_channel);
|
||||||
|
display_obj.tftDrawExitScaleButtons(false);
|
||||||
|
}
|
||||||
|
#else // Non touch
|
||||||
#ifdef HAS_SCREEN
|
#ifdef HAS_SCREEN
|
||||||
display_obj.TOP_FIXED_AREA_2 = 48;
|
display_obj.TOP_FIXED_AREA_2 = 48;
|
||||||
display_obj.tteBar = true;
|
display_obj.tteBar = true;
|
||||||
@@ -5860,11 +5883,11 @@ void WiFiScan::renderPacketRate() {
|
|||||||
#ifdef HAS_SCREEN
|
#ifdef HAS_SCREEN
|
||||||
uint8_t line_count = 0;
|
uint8_t line_count = 0;
|
||||||
display_obj.tft.fillRect(0,
|
display_obj.tft.fillRect(0,
|
||||||
(STATUS_BAR_WIDTH * 2) + 1,
|
(STATUS_BAR_WIDTH * 2) + 1 + EXT_BUTTON_WIDTH,
|
||||||
TFT_WIDTH,
|
TFT_WIDTH,
|
||||||
TFT_HEIGHT - STATUS_BAR_WIDTH + 1,
|
TFT_HEIGHT - STATUS_BAR_WIDTH + 1,
|
||||||
TFT_BLACK);
|
TFT_BLACK);
|
||||||
display_obj.tft.setCursor(0, (STATUS_BAR_WIDTH * 2) + CHAR_WIDTH);
|
display_obj.tft.setCursor(0, (STATUS_BAR_WIDTH * 2) + CHAR_WIDTH + EXT_BUTTON_WIDTH);
|
||||||
display_obj.tft.setTextSize(1);
|
display_obj.tft.setTextSize(1);
|
||||||
display_obj.tft.setTextColor(TFT_WHITE, TFT_BLACK);
|
display_obj.tft.setTextColor(TFT_WHITE, TFT_BLACK);
|
||||||
for (int i = 0; i < access_points->size(); i++) {
|
for (int i = 0; i < access_points->size(); i++) {
|
||||||
@@ -5879,6 +5902,10 @@ void WiFiScan::renderPacketRate() {
|
|||||||
Serial.println(macToString(stations->get(i).mac) + ": " + (String)stations->get(i).packets);
|
Serial.println(macToString(stations->get(i).mac) + ": " + (String)stations->get(i).packets);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAS_ILI9341
|
||||||
|
display_obj.key[6].drawButton();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5890,6 +5917,11 @@ void WiFiScan::packetRateLoop(uint32_t tick) {
|
|||||||
this->renderPacketRate();
|
this->renderPacketRate();
|
||||||
else if (this->currentScanMode == WIFI_SCAN_RAW_CAPTURE)
|
else if (this->currentScanMode == WIFI_SCAN_RAW_CAPTURE)
|
||||||
this->renderRawStats();
|
this->renderRawStats();
|
||||||
|
|
||||||
|
#ifdef HAS_ILI9341
|
||||||
|
initTime = millis();
|
||||||
|
channelHop();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -5927,6 +5959,13 @@ void WiFiScan::main(uint32_t currentTime)
|
|||||||
else if ((currentScanMode == WIFI_SCAN_CHAN_ANALYZER) ||
|
else if ((currentScanMode == WIFI_SCAN_CHAN_ANALYZER) ||
|
||||||
(currentScanMode == BT_SCAN_ANALYZER)) {
|
(currentScanMode == BT_SCAN_ANALYZER)) {
|
||||||
this->channelAnalyzerLoop(currentTime);
|
this->channelAnalyzerLoop(currentTime);
|
||||||
|
#ifdef HAS_ILI9341
|
||||||
|
if (currentTime - initTime >= this->channel_hop_delay * 1000)
|
||||||
|
{
|
||||||
|
initTime = millis();
|
||||||
|
channelHop();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if ((currentScanMode == WIFI_SCAN_PACKET_RATE) ||
|
else if ((currentScanMode == WIFI_SCAN_PACKET_RATE) ||
|
||||||
(currentScanMode == WIFI_SCAN_RAW_CAPTURE)) {
|
(currentScanMode == WIFI_SCAN_RAW_CAPTURE)) {
|
||||||
|
|||||||
@@ -413,6 +413,8 @@
|
|||||||
|
|
||||||
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 0
|
||||||
|
|
||||||
#define CHAR_WIDTH 6
|
#define CHAR_WIDTH 6
|
||||||
#define SCREEN_WIDTH TFT_HEIGHT // Originally 240
|
#define SCREEN_WIDTH TFT_HEIGHT // Originally 240
|
||||||
#define SCREEN_HEIGHT TFT_WIDTH // Originally 320
|
#define SCREEN_HEIGHT TFT_WIDTH // Originally 320
|
||||||
@@ -483,6 +485,8 @@
|
|||||||
|
|
||||||
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 0
|
||||||
|
|
||||||
#define CHAR_WIDTH 6
|
#define CHAR_WIDTH 6
|
||||||
#define SCREEN_WIDTH TFT_HEIGHT // Originally 240
|
#define SCREEN_WIDTH TFT_HEIGHT // Originally 240
|
||||||
#define SCREEN_HEIGHT TFT_WIDTH // Originally 320
|
#define SCREEN_HEIGHT TFT_WIDTH // Originally 320
|
||||||
@@ -543,6 +547,8 @@
|
|||||||
|
|
||||||
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 20
|
||||||
|
|
||||||
#define CHAR_WIDTH 12
|
#define CHAR_WIDTH 12
|
||||||
#define SCREEN_WIDTH TFT_WIDTH
|
#define SCREEN_WIDTH TFT_WIDTH
|
||||||
#define SCREEN_HEIGHT TFT_HEIGHT
|
#define SCREEN_HEIGHT TFT_HEIGHT
|
||||||
@@ -604,6 +610,8 @@
|
|||||||
|
|
||||||
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 20
|
||||||
|
|
||||||
#define CHAR_WIDTH 12
|
#define CHAR_WIDTH 12
|
||||||
#define SCREEN_WIDTH TFT_WIDTH
|
#define SCREEN_WIDTH TFT_WIDTH
|
||||||
#define SCREEN_HEIGHT TFT_HEIGHT
|
#define SCREEN_HEIGHT TFT_HEIGHT
|
||||||
@@ -669,6 +677,8 @@
|
|||||||
|
|
||||||
#define MAX_SCREEN_BUFFER 22
|
#define MAX_SCREEN_BUFFER 22
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 0
|
||||||
|
|
||||||
#define CHAR_WIDTH 12
|
#define CHAR_WIDTH 12
|
||||||
#define SCREEN_WIDTH TFT_WIDTH
|
#define SCREEN_WIDTH TFT_WIDTH
|
||||||
#define SCREEN_HEIGHT TFT_HEIGHT
|
#define SCREEN_HEIGHT TFT_HEIGHT
|
||||||
@@ -731,6 +741,8 @@
|
|||||||
#define TFT_DIY
|
#define TFT_DIY
|
||||||
#define KIT
|
#define KIT
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 20
|
||||||
|
|
||||||
#define CHAR_WIDTH 12
|
#define CHAR_WIDTH 12
|
||||||
#define SCREEN_WIDTH TFT_WIDTH
|
#define SCREEN_WIDTH TFT_WIDTH
|
||||||
#define SCREEN_HEIGHT TFT_HEIGHT
|
#define SCREEN_HEIGHT TFT_HEIGHT
|
||||||
@@ -802,6 +814,8 @@
|
|||||||
|
|
||||||
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 0
|
||||||
|
|
||||||
#define CHAR_WIDTH 6
|
#define CHAR_WIDTH 6
|
||||||
#define SCREEN_WIDTH TFT_WIDTH // Originally 240
|
#define SCREEN_WIDTH TFT_WIDTH // Originally 240
|
||||||
#define SCREEN_HEIGHT TFT_HEIGHT // Originally 320
|
#define SCREEN_HEIGHT TFT_HEIGHT // Originally 320
|
||||||
@@ -871,6 +885,8 @@
|
|||||||
|
|
||||||
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
#define GRAPH_VERT_LIM TFT_HEIGHT/2
|
||||||
|
|
||||||
|
#define EXT_BUTTON_WIDTH 0
|
||||||
|
|
||||||
#define CHAR_WIDTH 6
|
#define CHAR_WIDTH 6
|
||||||
#define SCREEN_WIDTH TFT_WIDTH // Originally 240
|
#define SCREEN_WIDTH TFT_WIDTH // Originally 240
|
||||||
#define SCREEN_HEIGHT TFT_HEIGHT // Originally 320
|
#define SCREEN_HEIGHT TFT_HEIGHT // Originally 320
|
||||||
|
|||||||
Reference in New Issue
Block a user