|
240 | 240 | * |
241 | 241 | * Set to `1` to enable backlight support, `0` to disable |
242 | 242 | */ |
243 | | -#define ESP_PANEL_BOARD_USE_BACKLIGHT (0) |
| 243 | +#define ESP_PANEL_BOARD_USE_BACKLIGHT (1) |
244 | 244 |
|
245 | 245 | #if ESP_PANEL_BOARD_USE_BACKLIGHT |
246 | 246 | /** |
|
255 | 255 | /** |
256 | 256 | * @brief Backlight control pin configuration |
257 | 257 | */ |
258 | | - #define ESP_PANEL_BOARD_BACKLIGHT_IO (17) // Output GPIO pin number |
| 258 | + #define ESP_PANEL_BOARD_BACKLIGHT_IO (40) // Output GPIO pin number |
259 | 259 | #define ESP_PANEL_BOARD_BACKLIGHT_ON_LEVEL (1) // Active level, 0: low, 1: high |
260 | 260 |
|
261 | 261 | #endif // ESP_PANEL_BOARD_BACKLIGHT_TYPE |
|
265 | 265 | * |
266 | 266 | * Set to 1 if want to turn off the backlight after initializing. Otherwise, the backlight will be on. |
267 | 267 | */ |
268 | | -#define ESP_PANEL_BOARD_BACKLIGHT_IDLE_OFF (1) |
| 268 | +#define ESP_PANEL_BOARD_BACKLIGHT_IDLE_OFF (0) |
269 | 269 |
|
270 | 270 | #endif // ESP_PANEL_BOARD_USE_BACKLIGHT |
271 | 271 |
|
|
282 | 282 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
283 | 283 | /////////////////////// Please utilize the following macros to execute any additional code if required ///////////////// |
284 | 284 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
285 | | -/** |
286 | | - * @brief Pre-begin function for board initialization |
287 | | - * |
288 | | - * @param[in] p Pointer to the board object |
289 | | - * @return true on success, false on failure |
290 | | - */ |
291 | | -#define ESP_PANEL_BOARD_PRE_BEGIN_FUNCTION(p) \ |
292 | | - { \ |
293 | | - constexpr gpio_num_t BL = static_cast<gpio_num_t>(40); \ |
294 | | - gpio_set_direction(BL, GPIO_MODE_OUTPUT); \ |
295 | | - gpio_set_level(BL, 1); \ |
296 | | - return true; \ |
297 | | - } |
298 | 285 |
|
299 | 286 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
300 | 287 | /////////////////////////////////////////////// File Version /////////////////////////////////////////////////////////// |
|
0 commit comments