Implement crash handler and diagnostics app (#119)

This commit is contained in:
Ken Van Hoeylandt
2024-12-12 22:38:48 +01:00
committed by GitHub
parent 74a53b2735
commit 51c6aaa428
38 changed files with 3717 additions and 24 deletions
@@ -87,7 +87,7 @@ bool TdeckDisplay::start() {
const esp_lcd_panel_dev_config_t panel_config = {
.reset_gpio_num = GPIO_NUM_NC,
.rgb_ele_order = LCD_RGB_ELEMENT_ORDER_RGB,
.data_endian = LCD_RGB_DATA_ENDIAN_BIG,
.data_endian = LCD_RGB_DATA_ENDIAN_LITTLE,
.bits_per_pixel = TDECK_LCD_BITS_PER_PIXEL,
.flags = {
.reset_active_high = 0
@@ -148,7 +148,7 @@ bool TdeckDisplay::start() {
.buff_dma = false,
.buff_spiram = true,
.sw_rotate = false,
.swap_bytes = true
.swap_bytes = false
},
};
+2 -6
View File
@@ -6,13 +6,9 @@
#define TAG "power"
/**
* The ratio of the voltage divider is supposedly 2.0, but when we set that, the ADC reports a bit over 4.45V
* when charging the device.
* There was also supposedly a +0.11 sag compensation related to "display under-voltage" according to Meshtastic firmware.
* Either Meshtastic implemented it incorrectly OR there is simply a 5-10% deviation in accuracy.
* The latter is feasible as the selected resistors for the voltage divider might not have been matched appropriately.
* 2.0 ratio, but +.11 added as display voltage sag compensation.
*/
#define ADC_MULTIPLIER 1.89f
#define ADC_MULTIPLIER 2.11
#define ADC_REF_VOLTAGE 3.3f
#define BATTERY_VOLTAGE_MIN 3.2f
@@ -72,8 +72,8 @@ bool YellowDisplay::start() {
const esp_lcd_panel_dev_config_t panel_config = {
.reset_gpio_num = GPIO_NUM_NC,
.rgb_ele_order = LCD_RGB_ELEMENT_ORDER_BGR,
.data_endian = LCD_RGB_DATA_ENDIAN_BIG,
.rgb_ele_order = LCD_RGB_ELEMENT_ORDER_RGB,
.data_endian = LCD_RGB_DATA_ENDIAN_LITTLE,
.bits_per_pixel = TWODOTFOUR_LCD_BITS_PER_PIXEL,
.flags = {
.reset_active_high = false
@@ -123,7 +123,7 @@ bool YellowDisplay::start() {
.buff_dma = true,
.buff_spiram = false,
.sw_rotate = false,
.swap_bytes = true
.swap_bytes = false
}
};