Skip to content

Commit cb8d290

Browse files
committed
round...again
1 parent b44b313 commit cb8d290

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Boards/WaveshareS3TouchLcd128/Source/WaveshareS3TouchLcd128.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static DeviceVector createDevices() {
1717
}
1818

1919
static bool initBoot() {
20-
return driver::pwmbacklight::init(GPIO_NUM_2, 200);
20+
return driver::pwmbacklight::init(GPIO_NUM_2, 256);
2121
}
2222

2323
extern const Configuration waveshare_s3_touch_lcd_128 = {

Boards/WaveshareS3TouchLcd128/Source/devices/Display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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));

Drivers/GC9A01/Source/Gc9a01Display.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)