2020-11-30 21:58:27 +01:00
|
|
|
// clang-format off
|
|
|
|
// upload_speed 1500000
|
|
|
|
// board esp32dev
|
|
|
|
|
|
|
|
#ifndef _TTGOTDISPLAY_H
|
|
|
|
#define _TTGOTDISPLAY_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
|
|
|
|
|
|
|
#define HAS_LED NOT_A_PIN // no on board LED (?)
|
|
|
|
#define HAS_BUTTON (35) // on board button A
|
|
|
|
|
|
|
|
// power management settings
|
|
|
|
#define BAT_MEASURE_ADC ADC1_GPIO34_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_6
|
|
|
|
#define BAT_VOLTAGE_DIVIDER 2.605f // voltage divider
|
|
|
|
|
|
|
|
// Display Settings
|
2022-08-16 13:12:09 +02:00
|
|
|
#define HAS_DISPLAY 2 // TFT-LCD
|
2022-08-19 16:35:02 +02:00
|
|
|
#define TFT_TYPE DISPLAY_T_DISPLAY
|
2022-08-16 13:12:09 +02:00
|
|
|
#define MY_DISPLAY_FLIP 1 // use if display is rotated
|
2020-11-30 21:58:27 +01:00
|
|
|
#define MY_DISPLAY_WIDTH 135
|
|
|
|
#define MY_DISPLAY_HEIGHT 240
|
|
|
|
|
|
|
|
#endif
|