diff --git a/README.md b/README.md index 553470b4..3d30a3c5 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Every time an stratum job notification is received miner update its current work - LILYGO T-QT pro ([Aliexpress link\*](https://s.click.aliexpress.com/e/_DBQIr43)) - LILYGO T-Display 1.14 ([Aliexpress link\*](https://s.click.aliexpress.com/e/_DEqGvSJ)) - LILYGO T-Display S3 AMOLED ([Aliexpress link\*](https://s.click.aliexpress.com/e/_DmOIK6j)) +- LILYGO T-Display S3 AMOLED Touch ([Board Info](https://www.lilygo.cc/products/t-display-s3-amoled?variant=43532279939253)) - LILYGO T-Dongle S3 ([Aliexpress link\*](https://s.click.aliexpress.com/e/_DmQCPyj)) - ESP32-2432S028R 2,8" ([Aliexpress link\*](https://s.click.aliexpress.com/e/_DdXkvLv) / Dev support: @nitroxgas / ⚡jadeddonald78@walletofsatoshi.com) - ESP32-cam ([Board Info](https://lastminuteengineers.com/getting-started-with-esp32-cam/) / Dev support: @elmo128) diff --git a/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x0000_bootloader.bin b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x0000_bootloader.bin new file mode 100644 index 00000000..fcf755eb Binary files /dev/null and b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x0000_bootloader.bin differ diff --git a/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x10000_firmware.bin b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x10000_firmware.bin new file mode 100644 index 00000000..887e07d8 Binary files /dev/null and b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x10000_firmware.bin differ diff --git a/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x8000_partitions.bin b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x8000_partitions.bin new file mode 100644 index 00000000..1954582f Binary files /dev/null and b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0x8000_partitions.bin differ diff --git a/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0xe000_boot_app0.bin b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0xe000_boot_app0.bin new file mode 100644 index 00000000..13562cab Binary files /dev/null and b/bin/bin LILYGO TDisplay-AMOLED-TOUCH/0xe000_boot_app0.bin differ diff --git a/platformio.ini b/platformio.ini index e7a63f2f..309bf557 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,7 +11,7 @@ [platformio] globallib_dir = lib -default_envs = M5Stick-C, esp32cam, ESP32-2432S028R, ESP32_2432S028_2USB, NerminerV2, Lilygo-T-Embed, ESP32-devKitv1, NerminerV2-S3-DONGLE, NerminerV2-S3-GEEK, NerminerV2-S3-AMOLED, NerminerV2-T-QT, NerdminerV2-T-Display_V1, ESP32-2432S028R, M5-StampS3, ESP32-S3-devKitv1, ESP32-S3-mini-wemos, ESP32-S2-mini-wemos, ESP32-S3-mini-weact, ESP32-D0WD-V3-weact, ESP32-C3-devKitmv1, ESP32-C3-super-mini +default_envs = M5Stick-C, esp32cam, ESP32-2432S028R, ESP32_2432S028_2USB, NerminerV2, Lilygo-T-Embed, ESP32-devKitv1, NerminerV2-S3-DONGLE, NerminerV2-S3-GEEK, NerminerV2-S3-AMOLED, NerminerV2-S3-AMOLED-TOUCH, NerminerV2-T-QT, NerdminerV2-T-Display_V1, ESP32-2432S028R, M5-StampS3, ESP32-S3-devKitv1, ESP32-S3-mini-wemos, ESP32-S2-mini-wemos, ESP32-S3-mini-weact, ESP32-D0WD-V3-weact, ESP32-C3-devKitmv1, ESP32-C3-super-mini [env:M5Stick-C] @@ -376,6 +376,27 @@ framework = arduino board_build.partitions = huge_app.csv build_flags = -DNERMINER_S3_AMOLED + -DTOUCH=0 + -DBOARD_HAS_PSRAM + -DARDUINO_USB_CDC_ON_BOOT +lib_deps = + https://github.com/takkaO/OpenFontRender + bblanchon/ArduinoJson@^6.21.2 + https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2 + mathertel/OneButton @ ^2.0.3 + arduino-libraries/NTPClient + https://github.com/golden-guy/Arduino_wolfssl.git#v5.5.4 + +;-------------------------------------------------------------------- + +[env:NerminerV2-S3-AMOLED-TOUCH] +platform = espressif32 +board = lilygo-t-amoled +framework = arduino +board_build.partitions = huge_app.csv +build_flags = + -DNERMINER_S3_AMOLED + -DTOUCH=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_CDC_ON_BOOT lib_deps = diff --git a/src/drivers/displays/amoledDisplayDriver.cpp b/src/drivers/displays/amoledDisplayDriver.cpp index 67fb27c3..0bf80253 100644 --- a/src/drivers/displays/amoledDisplayDriver.cpp +++ b/src/drivers/displays/amoledDisplayDriver.cpp @@ -29,6 +29,10 @@ TFT_eSprite background = TFT_eSprite(&tft); void amoledDisplay_Init(void) { +#if TOUCH + pinMode(38, OUTPUT); + digitalWrite(38, OUTPUT); +#endif rm67162_init(); lcd_setRotation(1);