Skip to content

Commit 550f367

Browse files
committed
fix some code
1 parent 8b56174 commit 550f367

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

src/board/supported/viewe/BOARD_VIEWE_SMARTRING.h

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
*
241241
* Set to `1` to enable backlight support, `0` to disable
242242
*/
243-
#define ESP_PANEL_BOARD_USE_BACKLIGHT (0)
243+
#define ESP_PANEL_BOARD_USE_BACKLIGHT (1)
244244

245245
#if ESP_PANEL_BOARD_USE_BACKLIGHT
246246
/**
@@ -255,7 +255,7 @@
255255
/**
256256
* @brief Backlight control pin configuration
257257
*/
258-
#define ESP_PANEL_BOARD_BACKLIGHT_IO (17) // Output GPIO pin number
258+
#define ESP_PANEL_BOARD_BACKLIGHT_IO (40) // Output GPIO pin number
259259
#define ESP_PANEL_BOARD_BACKLIGHT_ON_LEVEL (1) // Active level, 0: low, 1: high
260260

261261
#endif // ESP_PANEL_BOARD_BACKLIGHT_TYPE
@@ -265,7 +265,7 @@
265265
*
266266
* Set to 1 if want to turn off the backlight after initializing. Otherwise, the backlight will be on.
267267
*/
268-
#define ESP_PANEL_BOARD_BACKLIGHT_IDLE_OFF (1)
268+
#define ESP_PANEL_BOARD_BACKLIGHT_IDLE_OFF (0)
269269

270270
#endif // ESP_PANEL_BOARD_USE_BACKLIGHT
271271

@@ -282,19 +282,6 @@
282282
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
283283
/////////////////////// Please utilize the following macros to execute any additional code if required /////////////////
284284
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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-
}
298285

299286
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
300287
/////////////////////////////////////////////// File Version ///////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)