Search found 169 matches

by Christian Walther
Sun May 23, 2021 12:50 pm
Forum: Raspberry Pi microcontroller boards
Topic: Problem with UART reading (MH-Z19B sensor)
Replies: 13
Views: 8492

Re: Problem with UART reading (MH-Z19B sensor)

Also, in your original example, it looked like there were 3 extra bytes, not 2. (len(b'\x00\x00F') == 3, the F is not a hex digit but the ASCII character b'F' == b'\x46')
by Christian Walther
Thu May 20, 2021 3:37 pm
Forum: Development of MicroPython
Topic: Rolling dices on gc_mark_subtree !?
Replies: 8
Views: 3917

Re: Rolling dices on gc_mark_subtree !?

This is not a bug, false positives in pointer detection are expected and, as stijn mentions, do not affect the correctness of GC operation. Watch jimmo’s talk at https://melbournemicropythonmeetup.gith ... 20-Meetup/ for more details about how the garbage collector works.
by Christian Walther
Mon Apr 26, 2021 9:31 pm
Forum: General Discussion and Questions
Topic: Is MicroPython the right hammer for my nail?
Replies: 22
Views: 12073

Re: Is MicroPython the right hammer for my nail?

To Christian: I have heard about CircuitPython. What I've not seen, though, is an in-depth comparison between them. For example, I've heard that CircuitPython supports a single API across all devices, rather than tuning a different API to each device. Clearly simpler to use, but at some performance...
by Christian Walther
Sun Apr 25, 2021 7:03 pm
Forum: General Discussion and Questions
Topic: Is MicroPython the right hammer for my nail?
Replies: 22
Views: 12073

Re: Is MicroPython the right hammer for my nail?

I start to suspect that MicroPython is not targeted at beginners. You are probably right about this. To name the elephant in the room, are you aware of CircuitPython ? It’s a fork of MicroPython with the express purpose of being friendly to beginners, at the expense of some of the power and control...
by Christian Walther
Sat Apr 24, 2021 11:01 am
Forum: Raspberry Pi microcontroller boards
Topic: Having trouble with ure.match()
Replies: 2
Views: 2299

Re: Having trouble with ure.match()

Read the docs to learn what match() does. It is not what you want, it only matches at the beginning of the string. ure doesn’t seem to have a function to get multiple matches (that would be re.findall() or re.finditer() in CPython), so you’ll have to do that yourself using repeated application of ur...
by Christian Walther
Fri Apr 16, 2021 10:35 am
Forum: ESP32 boards
Topic: Custom files in the self-compiled Micropython
Replies: 7
Views: 3321

Re: Custom files in the self-compiled Micropython

But you can use pyboard.py to copy files after you used esptool.py to install MicroPython. Works fine in a script if you put a sleep 5 or something between them to let MicroPython boot.
by Christian Walther
Tue Apr 13, 2021 6:28 pm
Forum: ESP8266 boards
Topic: ESP8266 Bootloop after some seconds
Replies: 10
Views: 5730

Re: ESP8266 Bootloop after some seconds

Someone had a similar problem here related to their WiFi environment – worth a try if the usual measures don’t help.
by Christian Walther
Sun Apr 04, 2021 10:01 am
Forum: General Discussion and Questions
Topic: I am at a loss of how to get started??
Replies: 14
Views: 7365

Re: I am at a loss of how to get started??

>robert@mountain-cabin:~/micropython-1.14/tools$ pyboard.py /dev/ttyACM0 blinkpico.py bash: pyboard.py: command not found Naming a command without a path does not search in the current directory, only in the $PATH environment variable. To run an executable from the current directory, say ./pyboard....
by Christian Walther
Mon Mar 29, 2021 10:05 pm
Forum: ESP8266 boards
Topic: WDT reboot on startup relating to WIFI (possibly mesh wifi)
Replies: 7
Views: 3549

Re: WDT reboot on startup relating to WIFI (possibly mesh wifi)

Did you erase the flash before installing MicroPython ( esptool.py erase_flash )? The ESP8266 remembers in flash whether WiFi was on and what network it was connected to, and tries to restore that at boot. Maybe it has stale information there. On the first boot after erasing the flash (when no files...