Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of the CYB 2.2 inch capacitive screen. ESP32-2432S022 #112

Closed
T-REX-XP opened this issue Feb 12, 2025 · 24 comments
Closed

Add support of the CYB 2.2 inch capacitive screen. ESP32-2432S022 #112

T-REX-XP opened this issue Feb 12, 2025 · 24 comments

Comments

@T-REX-XP
Copy link

Could you please add support for the CYB ESP32-2432S022 board?

Documentation and examples: link

Serial port WebSerial VendorID 0x1a86 ProductID 0x7523
Connecting...
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision 3)
Features: Wi-Fi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:15:18:d4:59:d4
1 2

Thanks in advance

@bmorcelli
Copy link
Owner

Hey man... I've foud this project that might work in the TFT configuration

HASwitchPlate/openHASP#838

It is very hard for me to bring it to Launcher since I don't have the device..

Pleas go to the Launcher Flasher and try the BetaRelease > CYD-2432S022C version and tell me the results, please

@msahin
Copy link

msahin commented Feb 17, 2025

Image
i have uploaded beta build for this board but screen not working. only white screen. and these messages showing up on terminal

@bmorcelli
Copy link
Owner

Bodmer/TFT_eSPI#3281

I beleive you'll have a lot of trouble with this display..

@msahin
Copy link

msahin commented Feb 18, 2025

the only thing working for this board is OpenHASP with these (https://github.com/HASwitchPlate/openHASP/blob/master/user_setups/esp32/esp32-2432s022c.ini) settings. i think everything works. but I would like to use marauder or m5 launcher with this board.

@bmorcelli
Copy link
Owner

Yes.. I saw that.. seems like TFT_eSPI (Library used in this project, Marauder and Bruce) can't make it work..

In openHasp it is using LovyanGFX library and LVGL..

1 similar comment
@bmorcelli
Copy link
Owner

Yes.. I saw that.. seems like TFT_eSPI (Library used in this project, Marauder and Bruce) can't make it work..

In openHasp it is using LovyanGFX library and LVGL..

@bmorcelli
Copy link
Owner

hey man.. I'm trying a new graphics lib (Arduino_GFX), can you test it, and tell me if it works?

Please go to Launcher Flasher > BetaRelease > CYD-2432S022C (Capacitive)

@msahin
Copy link

msahin commented Feb 24, 2025

Image

i flashed and got only white screen and these serial output. bright white screen when it turns on. then the backlight dims. when i touch the screen the light increases. i think it's energy saving and touch works but no content on display

@T-REX-XP
Copy link
Author

Pleas go to the Launcher Flasher and try the BetaRelease > CYD-2432S022C version and tell me the results, please

Hi. I flashed the device, but the result was the same as in the comment above.

@bmorcelli
Copy link
Owner

Yes, ArduinoGFX and TFT_eSPI don't handle gpio over 31 for the tft pins.. the only library which works is LovyanGFX..

I'm thinking of a way to integrate it with the code I already have and keep it easy to add new boards..

I hope I'll have something until the end of this week..

@bmorcelli
Copy link
Owner

I updated now, can you test it?

now CYD-2432S022C is using LovyanGFX lib.. using the same openHASP settings

Launcher Flasher > BetaRelease > CYD-2432S022C (Capacitive)

@msahin
Copy link

msahin commented Feb 24, 2025

ELF file SHA256: 45bf3835fc852bd1

E (241) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:1276
ho 0 tail 12 room 4
load:0x40078000,len:13232
load:0x40080400,len:3076
entry 0x400805f0
[boot] Turned on because (1= POWERON_RESET) (Other= Probably forced by launcher)--> 12
E (520) esp_core_dump_flash: ����ɕ�dump partition found!
E (520) esp_core_dump_flash: No core dump partition found!
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x400d6c9a PS : 0x00060830 A0 : 0x800f0de5 A1 : 0x3ffb2240
A2 : 0x3ffc432c A3 : 0x3ffc4466 A4 : 0x3ffc4418 A5 : 0x3f415f50
A6 : 0x00000032 A7 : 0x3ffbdb70 A8 : 0x800d6c91 A9 : 0x3ffb2220
A10 : 0x00000000 A11 : 0x00000001 A12 : 0x00000001 A13 : 0x3ffb2200
A14 : 0x3ffc8490 A15 : 0x3ffb2210 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4008bfdd LEND : 0x4008bfed LCOUNT : 0xffffffff

Backtrace: 0x400d6c97:0x3ffb2240 0x400f0de2:0x3ffb2290

looping this. no screen

esp-web-tools-logs.txt

@bmorcelli
Copy link
Owner

Found the problem and fixed it.. I wasn't starting the object in the right way for this library, now it is fine

I've tested it on my T-Display S3, which uses 8bit_parallel too with lovyan and now it is supposed to be initializinf and working.

Launcher Flasher > BetaRelease > CYD-2432S022C (Capacitive)

@msahin
Copy link

msahin commented Feb 25, 2025

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:1276
ho 0 tail 12 room 4
load:0x40078000,len:13232
load:0x40080400,len:3076
entry 0x400805f0
[boot] Turned on because (1= POWERON_RESET) (Other= Probably forced by launcher)--> 1
ets Jul 29 2019 12:21:46

rst:0x3 (SW_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:1276
ho 0 tail 12 room 4
load:0x40078000,len:13232
load:0x40080400,len:3076
entry 0x400805f0
[boot] Turned on because (1= POWERON_RESET) (Other= Probably forced by launcher)--> 3
ets Jul 29 2019 12:21:46

Not working and i got this output loop

@bmorcelli
Copy link
Owner

It overflowed the partition size.. can you try it again, please?

@msahin
Copy link

msahin commented Feb 25, 2025

thank you. it is working fine but i think the screen orientation is wrong

VID-20250225-WA0012_1.mp4

@bmorcelli
Copy link
Owner

Niiiice!!! Awesome!! good to see the display working.. It might be a problem of the cfg.offset_rotation that was set to 3 (same used in TFT_eSPI), but maybe it should start at 0 (as an offset), and default ROTATION kept in 3 for the touch coordinates work well..

5c031e4

I updated now, you can test it

@msahin
Copy link

msahin commented Feb 25, 2025

Image
Image
Image
Image

everything works but i cant get connected to the wifi because keyboard characters are weird. wifi ap works. I tried to enter wifi credentials from wifi ap but I didn't succeed there either.
note: i changed to white color theme so keyboard picture colors changed

@bmorcelli
Copy link
Owner

Fixed now 😁

@bmorcelli
Copy link
Owner

rebuilding.. i broke a few things..
available in 6 minutes

@msahin
Copy link

msahin commented Feb 26, 2025

As far as I have tried, everything works perfectly. Thank you for your efforts.

I'm just wondering, there is a button on the board but I guess it has no function, can this button be assigned a function?

and i hope this card becomes compatible with other projects for example Marauder, bruce

@bmorcelli
Copy link
Owner

As far as I have tried, everything works perfectly. Thank you for your efforts.

Thank you!

I'm just wondering, there is a button on the board but I guess it has no function, can this button be assigned a function?

It could, but it's not necessary gor launcher

and i hope this card becomes compatible with other projects for example Marauder, bruce

Maybe..

@msahin
Copy link

msahin commented Feb 26, 2025

I was able to successfully upload and install openhasp .bin file. now dual booting launcher and openHASP. it's so cool. Thank you

m5launcher works very well and the card does not heat up, but when openHASP is running, the card gets very hot. I think your code is more optimized.

@bmorcelli
Copy link
Owner

It happens because OpenHasp keeps WiFi turned On the whole time.. it heats the ESP32 chip too much..

Launcher only uses WiFi while in OTA (for M5 devices) and while WebUI is on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants