File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Boards/WaveshareS3TouchLcd128/Source Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ static DeviceVector createDevices() {
1717}
1818
1919static bool initBoot () {
20- return driver::pwmbacklight::init (GPIO_NUM_2, 200 );
20+ return driver::pwmbacklight::init (GPIO_NUM_2, 256 );
2121}
2222
2323extern const Configuration waveshare_s3_touch_lcd_128 = {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
2626 SPI2_HOST,
2727 GPIO_NUM_9,
2828 GPIO_NUM_8,
29- GPIO_NUM_14,
3029 240 ,
3130 240 ,
3231 touch,
@@ -38,6 +37,7 @@ std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
3837 LCD_RGB_ELEMENT_ORDER_BGR
3938 );
4039
40+ configuration->resetPin = GPIO_NUM_14;
4141 configuration->backlightDutyFunction = driver::pwmbacklight::setBacklightDuty;
4242
4343 auto display = std::make_shared<Gc9a01Display>(std::move (configuration));
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ class Gc9a01Display final : public EspLcdDisplay {
2525 spi_host_device_t spiHostDevice,
2626 gpio_num_t csPin,
2727 gpio_num_t dcPin,
28- gpio_num_t resetPin,
2928 unsigned int horizontalResolution,
3029 unsigned int verticalResolution,
3130 std::shared_ptr<tt::hal::touch::TouchDevice> touch,
@@ -56,7 +55,7 @@ class Gc9a01Display final : public EspLcdDisplay {
5655 spi_host_device_t spiHostDevice;
5756 gpio_num_t csPin;
5857 gpio_num_t dcPin;
59- gpio_num_t resetPin;
58+ gpio_num_t resetPin = GPIO_NUM_NC ;
6059 unsigned int pixelClockFrequency = 80'000'000 ; // Hertz
6160 size_t transactionQueueDepth = 10 ;
6261 unsigned int horizontalResolution;
You can’t perform that action at this time.
0 commit comments