Here we go, easy work-around for the faulty lcd.image():
from m5stack import *
buffer = open("/sd/images/test.jpg").read()
lcd.image_buff(lcd.CENTER, lcd.CENTER, buffer)
Here we go, easy work-around for the faulty lcd.image():
from m5stack import *
buffer = open("/sd/images/test.jpg").read()
lcd.image_buff(lcd.CENTER, lcd.CENTER, buffer)
Adding upip
to the firmware image would make developer's live much easier.
How to manually install the urllib.parse
library.
Create folder /upip
and add files upip.py and upip_utarfile.py manually.
Install the library with upip:
%cd /flash/upip
import upip
upip.install("micropython-urllib.parse", "/flash/lib")
To get it working, remove re.py
and ffilib.py
from lib
. Hat-tip to Andreas.
Finally you can encode URL parameters for GET requests:
%cd /flash/lib
import urllib.parse
urllib.parse.urlencode({"a":1, "b": 2})
=> 'a=1&b=2'
In the forum I read that there is some advanced touch/swipe functionality available for the Arduino language.
Will there be high level touch/swipe functions for UIFlow?
I would like to do some photo swiping/scrolling on my Core2, like on a smart phone.
Cheers
Mike