esp-idf-st7789: Can not auto reset on my board

The screen cant reset after I flash the code. After I double the delay of reset pin it can auto reset now.

	if ( GPIO_RESET >= 0 ) {
		//gpio_pad_select_gpio( GPIO_RESET );
		gpio_reset_pin( GPIO_RESET );
		gpio_set_direction( GPIO_RESET, GPIO_MODE_OUTPUT );
		gpio_set_level( GPIO_RESET, 1 );
		delayMS(50);
		gpio_set_level( GPIO_RESET, 0 );
		// change from 50
		delayMS(100);
		gpio_set_level( GPIO_RESET, 1 );
		delayMS(50);
	}

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 24 (11 by maintainers)

Most upvoted comments