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

ESP32 samples are stuck at "EPD_12in48_M1_ReadBusy ..." #3

Open
marcelstoer opened this issue May 30, 2020 · 3 comments
Open

ESP32 samples are stuck at "EPD_12in48_M1_ReadBusy ..." #3

marcelstoer opened this issue May 30, 2020 · 3 comments

Comments

@marcelstoer
Copy link

18:20:08.895 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
18:20:08.895 -> configsip: 0, SPIWP:0xee
18:20:08.895 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
18:20:08.895 -> mode:DIO, clock div:1
18:20:08.895 -> load:0x3fff0018,len:4
18:20:08.895 -> load:0x3fff001c,len:1216
18:20:08.895 -> ho 0 tail 12 room 4
18:20:08.895 -> load:0x40078000,len:9720
18:20:08.895 -> ho 0 tail 12 room 4
18:20:08.895 -> load:0x40080400,len:6352
18:20:08.895 -> entry 0x400806b8
18:20:11.422 -> M1 Busying
18:20:11.422 -> M1 Busy free
18:20:11.951 -> EPD_12in48_Clear start ...
18:20:13.070 -> over ...
18:20:13.354 -> M1 Busying
18:20:13.354 -> M1 Busy free
18:20:13.572 -> EPD_12in48_M1_ReadBusy ...

The WiFi example behaves like that as well.

18:26:44.866 -> WiFi connected
18:26:44.866 -> Server started, ip: 192.168.1.216
18:26:44.866 -> HTTP server started
18:26:44.866 -> 
18:26:44.866 -> Ok!
18:26:44.866 -> 
18:29:13.631 -> 12.48inch e-Paper
18:29:14.020 -> M1 Busying
18:29:14.020 -> M1 Busy free
18:29:14.530 -> EPD_12in48_Clear start ...
18:29:15.624 -> over ...
18:29:18.361 -> Web_EPD_LoadA
18:29:18.361 -> 30000
18:29:18.361 -> Btime = 0
18:29:18.361 -> 12.48inch e-Paper LoadA S2
18:29:18.613 -> Web_EPD_LoadA
18:29:18.613 -> 30000
18:29:18.613 -> Btime = 15000
18:29:18.826 -> Web_EPD_LoadA
18:29:18.826 -> 30000
18:29:18.826 -> Btime = 30000
18:29:18.859 -> 12.48inch e-Paper LoadA M2
18:29:19.068 -> Web_EPD_LoadA
18:29:19.068 -> 30000
18:29:19.068 -> Btime = 45000
18:29:19.278 -> Web_EPD_LoadA
18:29:19.278 -> 30000
18:29:19.278 -> Btime = 60000
18:29:19.523 -> Web_EPD_LoadA
18:29:19.523 -> 30000
18:29:19.523 -> Btime = 75000
18:29:19.557 -> 12.48inch e-Paper LoadA M1
18:29:19.731 -> Web_EPD_LoadA
18:29:19.731 -> 30000
18:29:19.731 -> Btime = 90000
18:29:19.975 -> Web_EPD_LoadA
18:29:19.975 -> 30000
18:29:19.975 -> Btime = 105000
18:29:20.185 -> Web_EPD_LoadA
18:29:20.185 -> 30000
18:29:20.185 -> Btime = 120000
18:29:20.185 -> 12.48inch e-Paper LoadA S1
18:29:20.431 -> Web_EPD_LoadA
18:29:20.431 -> 30000
18:29:20.431 -> Btime = 135000
18:29:20.613 -> Web_EPD_LoadA
18:29:20.613 -> 20784
18:29:20.613 -> Btime = 150000
18:29:20.717 -> Web_EPD_Show
18:29:20.717 -> 12.48inch e-Paper
18:29:20.997 -> M1 Busying
18:29:20.997 -> M1 Busy free
18:29:21.206 -> EPD_12in48_M1_ReadBusy ...

So, the do-while loop at https://github.com/waveshare/12.48inch-e-paper/blob/master/esp32/esp32-epd-12in48/src/utility/EPD_12in48.cpp#L419 never ends.

@hnwangkg-ezio
Copy link
Contributor

Yes the routine is an infinite loop, so that you can always receive data

@marcelstoer
Copy link
Author

Ok, but then why does epd12in48-demo.ino not work? It's stuck at "EPD_12in48_M1_ReadBusy ..." as shown in the first output.

@martinberlin
Copy link

Marcel if you use ESP32 I recommend you to try my component:
https://github.com/martinberlin/cale-idf/wiki/Model-wave12i48.h

To drive this display. Only issue is that you need to be familiar with ESP-IDF framework from Espressif to compile this. But is not complicated and it's a great framework to work with.

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