Re: ESP32 TFT display library
Posted: Fri Aug 11, 2017 1:12 am
Why did you commented out call to gpio_set_level() in spi_master_lobo.c?
In this case we can't use GPIO 32,33 for PIN_NUM_DC. Maybe you have a reason to do so?
I uncommented call to gpio_set_level in 2 places and modified two defines in tftspi.c:and successfully tested demo with definition:
Code: Select all
//gpio_set_level(handle->cfg.spics_ext_io_num, 0);
GPIO.out_w1ts = (1 << handle->cfg.spics_ext_io_num);
I uncommented call to gpio_set_level in 2 places and modified two defines in tftspi.c:
Code: Select all
//#define DC_CMD GPIO.out_w1tc = (DC_VAL)
//#define DC_DATA GPIO.out_w1ts = (DC_VAL)
#define DC_CMD gpio_set_level(PIN_NUM_DC,0)
#define DC_DATA gpio_set_level(PIN_NUM_DC,1)
Code: Select all
#define PIN_NUM_DC 33