Thank you guys it works! You saved me :) ... finally I can switch to micropython, programming using arduino IDE was kind of slow and painful
Best posts made by doubleness
-
RE: [M5Paper] UiFlow support
Latest posts made by doubleness
-
RE: M5Paper: How to display large jpg image from web (or download it to SD card)
@felmue Thanks Felix, I tested different urls with several jpg images and it is really working.
I was probably testing either images with wrong format or simply didn't wait long enough until the image is drawn. And not sure why, I was under impression that images need to be smaller than 50KB ... my bad.
Thanks again, you saved me a lot of headache :)
-
M5Paper: How to display large jpg image from web (or download it to SD card)
Hello!
I am new to m5stack, arduino/micropython and ESP32 development overall, and I was wondering if anybody here could help me and give me advice what would be best way to go about displaying larger jpg images (~1MB) directly from web on m5paper.
I was able to draw small example image "flower.jpg" using
canvas.drawJpgUrl("https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/example_pic/flower.jpg");
But I understand I cant draw larger images this way, directly from the web, so I was thinking I would download the image to SD card first and then display it (since that works for large images)
Any ideas if there is a better way to do this and what I should look into?
Thank you!
PS: I found that maybe I could modify this example to download images, but it is a bit complicated for me to understand everything:
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino -
RE: [M5Paper] UiFlow support
Thank you guys it works! You saved me :) ... finally I can switch to micropython, programming using arduino IDE was kind of slow and painful
-
RE: [M5Paper] UiFlow support
@felmue Hey, are you able to run the code on your device? Not sure what I am doing wrong, I burned UiFlow alpha version, and connected to my device, also it seems like code is being uploaded to m5paper device, and screen refreshes probably restarting, but nothing shows up in the screen.
Everytime I try to upload the code I get warning ' Lack block "Set screen set show" or "Set screen parital show" '
Not sure what I am doing wrong, any idea?