Search found 7 matches

by Lebowski
Thu May 13, 2021 3:47 pm
Forum: General Discussion and Questions
Topic: Read an bytearray from json
Replies: 3
Views: 824

Read an bytearray from json

Hi, unfortunately it's not possible to store bytearrays in json-files. If i use the string-representation of an bytearray, e .g (b\xe5V\xb5\x01<: i get (bxe5V\xb5x01<: after loading the file. If i escape the backslashes (b\\xe5V\\xb5\\x01<: i get the same string (with double-backslashes) after loadi...
by Lebowski
Thu May 13, 2021 3:37 pm
Forum: General Discussion and Questions
Topic: __import__ not working
Replies: 2
Views: 552

Re: __import__ not working

Hi,

i think i got it: __import__("foo.bar.foobar") returns a modules object.

Code: Select all

m=__import__("foo.bar.foobar")
To create an object from foo.bar.foobar.Foo you have to use

Code: Select all

f=m.Foo()
by Lebowski
Thu May 13, 2021 9:14 am
Forum: General Discussion and Questions
Topic: __import__ not working
Replies: 2
Views: 552

__import__ not working

Hi, im using MicroPython v1.14-457-g3bf6c7f12 I've a module foo.bar.foobar When running import foo.bar.foobar everything is fine, i can use the module. When running (for some reason i've to do it this way) __import__("foo.bar.foobar") the module i not import. Ther is nor rrrormessage while running t...
by Lebowski
Wed Apr 14, 2021 8:50 am
Forum: Programs, Libraries and Tools
Topic: Getting lvgl to work
Replies: 2
Views: 531

Re: Getting lvgl to work

Hello,

i got it to work. I followed the instructions on https://github.com/lvgl/lv_micropython/ ... /README.md

Except the last command. You have to use

Code: Select all

make -C ports/esp32 LV_CFLAGS="-DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1" BOARD=GENERIC_SPIRAM deploy
by Lebowski
Sun Apr 11, 2021 5:55 pm
Forum: Programs, Libraries and Tools
Topic: Getting lvgl to work
Replies: 2
Views: 531

Re: Getting lvgl to work

To concrete my question: Is there any prebuild version with micropython and enabled lvgl?
by Lebowski
Sat Apr 10, 2021 5:44 pm
Forum: Programs, Libraries and Tools
Topic: Getting lvgl to work
Replies: 2
Views: 531

Getting lvgl to work

Hi, i'm new to micropython. Currently im working on an m5stack for some testing, later i want to change to an NORVI IIOT ( https://norvi.lk/industrial-esp32-norvi-iiot/ ). Today i try to get in contact with littlevgl. I had some experiences in the online simulator. But i don't understand how to get ...
by Lebowski
Fri Dec 25, 2020 7:18 am
Forum: General Discussion and Questions
Topic: M5Stack / NORVI IIOT ESP32 firmware
Replies: 0
Views: 771

M5Stack / NORVI IIOT ESP32 firmware

Hi, i'm new to micropython and the esp32 board. At the moment i'm using the m5stack cor. Later i will use the NORVI IIOT ESP32. At the moment i don't no the right way how to flash the board. I found LoBo's repo for Micropython on wsp32 modules, which seems to fit my needs. Especially because of the ...