Search found 49 matches
- Sat May 22, 2021 11:04 pm
- Forum: ESP32 boards
- Topic: boot.py for twatch-2020
- Replies: 0
- Views: 1160
boot.py for twatch-2020
This is just a friendly ad for those who are using subject smart watch with micropython. I created a boot.py one-liner which will prevent the stock battery from blowing up. Yes it does. No I am ok thank you. https://github.com/pulkin/mpy-twatch-config It essentially sets the charging current to the ...
- Tue Mar 02, 2021 8:24 pm
- Forum: ESP32 boards
- Topic: Toolchain bindings in mpy files
- Replies: 1
- Views: 1029
Toolchain bindings in mpy files
Hi,
How do I create mpy module with bindings to IDF API? What needs to be included into Makefile or example?
How do I create mpy module with bindings to IDF API? What needs to be included into Makefile or example?
- Wed Nov 18, 2020 5:24 pm
- Forum: Programs, Libraries and Tools
- Topic: Event construction in micropython
- Replies: 7
- Views: 3510
Re: Event construction in micropython
I have to admit I ended up with the same kind of an infinite loop polling event queue. Events are added via interrupts. I also have to admit that having a single event slot per type instead of a queue seems to be a reasonable choice for touch events at least.
- Fri Oct 23, 2020 8:25 pm
- Forum: Programs, Libraries and Tools
- Topic: Event construction in micropython
- Replies: 7
- Views: 3510
Re: Event construction in micropython
The second one is a monster library compared to my expectations. It looks like it polls touch hardware in a loop: pin_irq is not even used! Besides, it is hard-nailed to pyboard.
- Thu Oct 22, 2020 9:55 pm
- Forum: Programs, Libraries and Tools
- Topic: Event construction in micropython
- Replies: 7
- Views: 3510
Event construction in micropython
Hi there, I am looking for a good event-driven architecture to develop GUI on ESP32 board. My basic task is to, for example, react on touch screen and other interrupts without writing much code. The payload I am looking into may run for a while so I am probably looking at uasyncio. Can anybody point...
- Sat May 16, 2020 3:37 pm
- Forum: Development of MicroPython
- Topic: test/parser.py fails on my port: any clue how to debug this?
- Replies: 11
- Views: 7989
Re: test/parser.py fails on my port: any clue how to debug this?
I decided to come back to this issue. I see that the globals pointer is not immediately broken: why would this happen? MicroPython v1.11-744-g4679075199-dirty on 2020-05-16; A9/A9G module with RDA8955 Type "help()" for more information. >>> globals() mp_globals_get: result 0x82300fe8 mp_globals_get:...
- Thu Mar 26, 2020 6:49 pm
- Forum: Development of MicroPython
- Topic: test/parser.py fails on my port: any clue how to debug this?
- Replies: 11
- Views: 7989
Re: test/parser.py fails on my port: any clue how to debug this?
When "compile" raises SyntaxError it corrupts the memory.
- Thu Mar 26, 2020 6:46 pm
- Forum: Development of MicroPython
- Topic: test/parser.py fails on my port: any clue how to debug this?
- Replies: 11
- Views: 7989
Re: test/parser.py fails on my port: any clue how to debug this?
Code: Select all
>>> compile("", "stdin", "eval")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "stdin", line 2
SyntaxError: invalid syntax
>>> compile("", "stdin", "eval")
(module halts)
- Mon Mar 23, 2020 10:26 am
- Forum: Development of MicroPython
- Topic: test/parser.py fails on my port: any clue how to debug this?
- Replies: 11
- Views: 7989
Re: test/parser.py fails on my port: any clue how to debug this?
Honestly saying, I have only a vague idea how nlr works and what has to be implemented by the port. I inherited it from whoever started porting mpy to the module. Here is the code:
https://github.com/pulkin/micropython/t ... ts/gprs_a9
https://github.com/pulkin/micropython/t ... ts/gprs_a9
- Sun Mar 22, 2020 7:12 pm
- Forum: Development of MicroPython
- Topic: test/parser.py fails on my port: any clue how to debug this?
- Replies: 11
- Views: 7989
Re: test/parser.py fails on my port: any clue how to debug this?
I am working on making gdb and, possibly, hardware breakpoint working. I tried doing that a couple of times already but did not really succeed. Can you point to commit fixing the issue you refer to? Maybe it is not yet in the port ...