Skip to content

Commit 60ebedf

Browse files
committed
adjust ssd1331 rst time
1 parent 4a649cc commit 60ebedf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main/src/driver/ssd1331.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
#define SSD1331_GPIO_PIN_RST 14
2525

2626
#define SSD1331_PIN_SET() do { \
27+
gpio_set_level(SSD1331_GPIO_PIN_DC, 0);\
28+
gpio_set_level(SSD1331_GPIO_PIN_RST, 0);\
2729
gpio_set_direction(SSD1331_GPIO_PIN_DC, GPIO_MODE_OUTPUT);\
2830
gpio_set_direction(SSD1331_GPIO_PIN_RST, GPIO_MODE_OUTPUT);\
29-
gpio_set_level(SSD1331_GPIO_PIN_RST, 0);\
30-
vTaskDelay(200 / portTICK_PERIOD_MS);\
31+
vTaskDelay(500 / portTICK_PERIOD_MS);\
3132
gpio_set_level(SSD1331_GPIO_PIN_RST, 1);\
3233
} while (0)
3334

0 commit comments

Comments
 (0)