Search found 5956 matches

by pythoncoder
Thu Aug 04, 2022 8:25 am
Forum: General Discussion and Questions
Topic: WebREPL and uasyncio
Replies: 9
Views: 10182

Re: WebREPL and uasyncio

In Python (Cpython and MicroPython) while a program is running the REPL is inactive. You can interrupt execution with ctrl-C but any other typing is ignored. In this respect a uasyncio program is no different from any other.
by pythoncoder
Tue Aug 02, 2022 8:19 am
Forum: Programs, Libraries and Tools
Topic: nano-gui - Trying Adafruit 2.9" E-Ink Tri-Color display with Esp32
Replies: 7
Views: 6214

Re: nano-gui - Trying Adafruit 2.9" E-Ink Tri-Color display with Esp32

Please see list of supported displays. Unfortunately your display is not on that list and no driver has been written for it.
by pythoncoder
Sun Jul 31, 2022 9:46 am
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 442758

Re: Teensy 4.0 & 4.1

... Other flash chips might not require that option, or the need it to be set as: cmd5=True ... As you may know, some chip designs use 4 byte commands and others use 5 bytes. Aside from studying the datasheet, trial and error with the cmd5 arg is required. Unless there is a way to query the chip to...
by pythoncoder
Sun Jul 31, 2022 7:46 am
Forum: ESP32 boards
Topic: Triple Quoted Comments (Strings)
Replies: 3
Views: 2494

Re: Triple Quoted Comments (Strings)

They are ignored.

The way to check this kind of thing is to compile the Unix build. Write a small test script and issue

Code: Select all

./micropython -v -v my_test.py
It will print the bytecode generated.

This is extremely informative.
by pythoncoder
Sun Jul 31, 2022 7:40 am
Forum: General Discussion and Questions
Topic: Odd timing response between Node Red and Pico W?
Replies: 4
Views: 3093

Re: Odd timing response between Node Red and Pico W?

Please could you point me to some documentation that explains this code.
by pythoncoder
Fri Jul 29, 2022 7:59 am
Forum: General Discussion and Questions
Topic: Use of gc over and over?
Replies: 5
Views: 2717

Re: Use of gc over and over?

When you import a module which exists as Python sourcecode the compiler converts it to bytecode. This process involves allocations and running an explicit gc.collect() reclaims the allocations. The aim is to reduce RAM fragmentation. This can be an issue if the application needs to allocate large bu...
by pythoncoder
Fri Jul 29, 2022 7:43 am
Forum: MicroPython pyboard
Topic: Why is the interrupt queued?
Replies: 5
Views: 22504

Re: Why is the interrupt queued?

Roberthh wrote:
Thu Jul 28, 2022 7:21 pm
... AFAIK, pyb.Extint() runs a hard interrupt, but I never tested that.
It does. But as you point out it is effectively obsolete.
by pythoncoder
Thu Jul 28, 2022 8:41 am
Forum: General Discussion and Questions
Topic: Using local time with Pico W
Replies: 17
Views: 47272

Re: Using local time with Pico W

Very useful. I'd missed that.
by pythoncoder
Thu Jul 28, 2022 8:36 am
Forum: General Discussion and Questions
Topic: Problems with running umqtt client asynchronously in main.py
Replies: 6
Views: 8335

Re: Problems with running umqtt client asynchronously in main.py

If asynchronous operation is important mqtt_as is a proven solution.