firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Support ESP32-2432S024R " Resistive Touch USB Type-C Only

Open Ruslan228asr opened this issue 1 year ago • 79 comments

Good day! My name is Ruslan, and I'm writing from Ukraine. Recently, I encountered a problem with the firmware for the CYD-2432S024R (Type-C). The standard CYD-2432S028 firmware was installed on it, but there was no image. However, the CYD-2432W328C firmware displayed the image, but the touch screen didn't work.

I tried installing all the firmware versions from the official website, but nothing worked. The display itself is functional, as I've used it before. I also confirmed its operability with the Marauder firmware, where everything works fine.

I hope you can add support for this board. Many users on forums and Discord channels have reported similar issues with this board.

Ruslan228asr avatar Jan 08 '25 06:01 Ruslan228asr

We don't have this device to setup the touchscreen and screen, so it's difficult to do things blindly..

Do you have repository examples of codes that work for this display? So we can get information and implement it?

bmorcelli avatar Jan 08 '25 13:01 bmorcelli

Thanks for, no there isn't. But there is firmware (marauder) that supports my board: https://github.com/Fr4nkFletcher/ESP32-Marauder-Cheap-Yellow-Display

Ruslan228asr avatar Jan 08 '25 16:01 Ruslan228asr

i think this one would work : https://github.com/rzeldent/esp32-smartdisplay-demo

RandomDHR6 avatar Jan 08 '25 16:01 RandomDHR6

i think this one would work : https://github.com/rzeldent/esp32-smartdisplay-demo

I think this one will also work

Ruslan228asr avatar Jan 09 '25 21:01 Ruslan228asr

I have a beta version installed for CYD-2432S024c, and CYD-2432W28. But all had two problems. More precisely: the touchscreen does not work, and the animations do not work correctly (I mean the bruce animation)

Ruslan228asr avatar Jan 09 '25 21:01 Ruslan228asr

The touchscreen does not work,

Different board, different touch pins/drive

and the animations do not work correctly (I mean the bruce animation)

If you're running the Launcher Version, it doesn't have the animation

bmorcelli avatar Jan 09 '25 22:01 bmorcelli

The touchscreen does not work,

Different board, different touch pins/drive

and the animations do not work correctly (I mean the bruce animation)

If you're running the Launcher Version, it doesn't have the animation

yes, I understand

Ruslan228asr avatar Jan 09 '25 22:01 Ruslan228asr

will it be possible to support CYD-2432S024r?

Ruslan228asr avatar Jan 10 '25 17:01 Ruslan228asr

Touch function and battery level indicator is working well on this firmware. https://github.com/Spooks4576/Ghost_ESP I installed it to ESP32-2432S024R board. Maybe possible to migrate setups of touch function.

Neo2a avatar Jan 15 '25 09:01 Neo2a

Touch function and battery level indicator is working well on this firmware. https://github.com/Spooks4576/Ghost_ESP I installed it to ESP32-2432S024R board. Maybe possible to migrate setups of touch function.

I sent a patch for it now, will be available in about 15 minutes to install

Battery level indicator for these CYD boards rely on a separate device connected to the GPIO.. we (Bruce devs) prefere to use these GPIO for RF, RFID, GPS and more interesting stuff than showing a percentage of battery on screen..

so, if it comes for us to decide to add or not, the answer is "its not gonna happen"..

bmorcelli avatar Jan 15 '25 11:01 bmorcelli

Installed a beta released CYD-2432S024R firmware now with bruce.computer/flasher. The touch function does not working yet. :-(

Neo2a avatar Jan 15 '25 12:01 Neo2a

The touchscreen doesn't work. But I can send you the logs, maybe they will help in some way. ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:1184 load:0x40078000,len:13232 load:0x40080400,len:3028 entry 0x400805e4 E (1347) esp_core_dump_flash: No core dump partition x櫹�� E (1347) esp_core_dump_flash: No core dump partition found! E (1351) esp_ota_ops: not found otadata [ 21][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz [ 48][V][esp32-hal-uart.c:330] uartBegin(): UART0 baud(115200) Mode(800001c) rxPin(3) txPin(1) [ 57][V][esp32-hal-uart.c:416] uartBegin(): UART0 not installed. Starting installation [ 68][V][esp32-hal-uart.c:463] uartBegin(): UART0 initialization done. [ 83][D][main.cpp:302] setup(): Total heap: 195864 [ 88][D][main.cpp:303] setup(): Free heap: 160812 [ 93][D][main.cpp:306] setup(): PSRAM Not Found [ 97][D][main.cpp:307] setup(): Total PSRAM: 0 [ 102][D][main.cpp:308] setup(): Free PSRAM: 0 [ 108][I][interface.cpp:35] _setup_gpio(): Touch IC Started [ 421][E][esp32-hal-cpu.c:110] addApbChangeCallback(): duplicate func=0x401cda18 arg=0x3ffc0970 [ 483][I][config.cpp:176] fromFile(): Using config from file [ 513][I][config.cpp:176] fromFile(): Using config from file [ 551][I][interface.cpp:70] _setBrightness(): dutyCycle for bright 0-255: 255 E (1890) ledc: ledc_set_duty(725): LEDC is not initialized E (1891) ledc: ledc_update_duty(653): LEDC is not initialized { "priColor": "a80f", "secColor": "880f", "bgColor": "0", "rot": 1, "dimmerSet": 10, "bright": 100, "tmz": 0, "soundEnabled": 1, "wifiAtStartup": 0, "ledBright": 75, "ledColor": "0", "webUI": { "user": "admin", "pwd": "bruce" }, "wifiAp": { "ssid": "BruceNet", "pwd": "brucenet" }, "wifi": {}, "irTx": 22, "irRx": 22, "rfTx": 27, "rfRx": 22, "rfModule": 0, "rfFreq": 433.92, "rfFxdFreq": 1, "rfScanRange": 3, "rfidModule": 0, "mifareKeys": [], "gpsBaudrate": 9600, "startupApp": "", "wigleBasicToken": "", "devMode": 0, "disabledMenus": [], "qrCodes": [ { "menuName": "Bruce AP", "content": "WIFI:T:WPA;S:BruceNet;P:brucenet;;" }, { "menuName": "Bruce Wiki", "content": "https://github.com/pr3y/Bruce/wiki" }, { "menuName": "Bruce Site", "content": "https://bruce.computer" }, { "menuName": "Rickroll", "content": "https://youtu.be/dQw4w9WgXcQ" } ] }[ 680][I][config.cpp:195] saveFile(): config file written successfully [ 698][W][LittleFS.cpp:77] begin(): LittleFS Already Mounted! [ 956][E][vfs_api.cpp:105] open(): /littlefs/boot.jpg does not exist, no permits for creation [ 1303][I][config.cpp:176] fromFile(): Using config from file [ 11247][I][interface.cpp:70] _setBrightness(): dutyCycle for bright 0-255: 12 [ 12274][I][interface.cpp:70] _setBrightness(): dutyCycle for bright 0-255: 255

Ruslan228asr avatar Jan 15 '25 15:01 Ruslan228asr

Touchscreen in this device shares the same SPI bus with tft.. it needs other approach.. I'll try something later

bmorcelli avatar Jan 16 '25 08:01 bmorcelli

The ghost ESP is working. Can you implement that setups into your firmware? https://github.com/Spooks4576/Ghost_ESP

https://github.com/user-attachments/assets/463f44e6-a7fe-4f27-9eee-3746c07de92c

Neo2a avatar Jan 16 '25 09:01 Neo2a

Ghost uses lvgl and esp-idf for his project.. his libs doesn't work on our environment.. there's an easy way out for this problem.. I'll try it out in a few hours

bmorcelli avatar Jan 16 '25 09:01 bmorcelli

Thank you for yor effort.

Neo2a avatar Jan 16 '25 09:01 Neo2a

Ghost uses lvgl and esp-idf for his project.. his libs doesn't work on our environment.. there's an easy way out for this problem.. I'll try it out in a few hours

ok, thanks for supporting this device. I have a question. Should I send you the logs during testing?

Ruslan228asr avatar Jan 17 '25 14:01 Ruslan228asr

It is a good practice, as I don't have this device

bmorcelli avatar Jan 17 '25 17:01 bmorcelli

I would test it too but the flex tape that connects the touch screen to the esp has a little cut and it doesn't work unfortunately.

RandomDHR6 avatar Jan 17 '25 17:01 RandomDHR6

Can you try installin the Beta from my repo??

Flasher is here https://bmorcelli.github.io/Bruce/flasher

bmorcelli avatar Jan 17 '25 18:01 bmorcelli