Search found 169 matches
- Sat Jul 17, 2021 10:53 am
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - determining if a function is a coroutine
- Replies: 12
- Views: 5650
Re: uasyncio - determining if a function is a coroutine
As far as I know, async functions are implemented as generator functions in MicroPython. So the following could work. It catches generator functions too though, I don’t know if these can be distinguished. Someone more familiar with uasyncio may have a better idea. async def proto(): pass def iscorou...
- Sun Jul 11, 2021 3:45 pm
- Forum: Development of MicroPython
- Topic: Terminal UTF-8 text corruption
- Replies: 14
- Views: 7073
Re: Terminal UTF-8 text corruption
Okay, that’s odd. I’m not getting anything like that, screen -U is showing dozens of correct Θερμοκρασία. Does it only happen with non-ASCII characters? I guess you’d need to check with an oscilloscope or logic analyzer to be sure what’s happening.
- Sun Jul 11, 2021 2:19 pm
- Forum: Development of MicroPython
- Topic: Terminal UTF-8 text corruption
- Replies: 14
- Views: 7073
Re: Terminal UTF-8 text corruption
Can you be more specific on what you are doing, what you expect to happen, and what happens instead? And try to give a more minimal reproducing example, I assume the whole temperature measuring stuff is unnecessary and just makes it harder to try for people who don’t have a temperature sensor handy?...
- Sun Jul 11, 2021 2:07 pm
- Forum: ESP32 boards
- Topic: Use REPL uart to program device and to communicate to PC
- Replies: 4
- Views: 2054
Re: Use REPL uart to program device and to communicate to PC
Correction: I just learned that detaching the UART using dupterm() does not work on the ESP32 because it’s not attached that way (“UART(0) is disabled (dedicated to REPL)”, esp32/machine_uart.c).
However you can run UART 1 on the same pins: machine.UART(1, tx=1, rx=3)
However you can run UART 1 on the same pins: machine.UART(1, tx=1, rx=3)
- Sun Jul 11, 2021 11:09 am
- Forum: ESP32 boards
- Topic: Use REPL uart to program device and to communicate to PC
- Replies: 4
- Views: 2054
Re: Use REPL uart to program device and to communicate to PC
You probably don’t even need to disable it for that, you can use it as enabled as it is. The REPL is only active while your program is not running, so it won’t interfere with your own use. While your program is running, the UART is attached to stdin and stdout of your program and you can use it to c...
- Fri Jul 09, 2021 7:04 am
- Forum: General Discussion and Questions
- Topic: Apple Desktop Bus (ADB) KB II
- Replies: 5
- Views: 2281
Re: Apple Desktop Bus (ADB) KB II
The ADB specification and some supplementary documentation is linked at the bottom of https://en.wikipedia.org/wiki/Apple_Desktop_Bus. I am not aware of any MicroPython implementation (nor of any other open-source one other than TMK/QMK).
- Fri Jun 25, 2021 7:09 am
- Forum: ESP8266 boards
- Topic: Flashing works, but then receiving garbage on serial connection with MicroPython on a ESP-01S S Series
- Replies: 5
- Views: 3282
Re: Flashing works, but then receiving garbage on serial connection with MicroPython on a ESP-01S S Series
The picture clearly shows a 26 MHz quartz, so it can’t be the 40 MHz issue. Any chance you could hook up an oscilloscope or logic analyzer to see what baud rate really comes out of the UART? (Just to be sure, you connected with 74880 baud before resetting, so you should have seen the boot messages? ...
- Wed Jun 23, 2021 7:12 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Save recorded data to .txt file
- Replies: 3
- Views: 6757
Re: Save recorded data to .txt file
If a permanent serial connection to your computer is acceptable, you can use mpremote to mount a directory from your computer on the Pico. If not, just use it (or any other file transfer tool) to copy the file over.
- Sat Jun 12, 2021 6:06 pm
- Forum: ESP8266 boards
- Topic: New to MicroPython, putty showing garbage chars
- Replies: 46
- Views: 21859
Re: New to MicroPython, putty showing garbage chars
Okay, then I don’t know what’s going on. These definitely shouldn’t behave like that. I have some of them right here, recently bought, and they work just fine with esp8266-20210418-v1.15.bin and don’t need any special flash mode either.
- Sat Jun 12, 2021 4:22 pm
- Forum: ESP8266 boards
- Topic: New to MicroPython, putty showing garbage chars
- Replies: 46
- Views: 21859
Re: New to MicroPython, putty showing garbage chars
the ESP32 briefly outputs data at 9600 baud at boot (before MicroPython starts). Correction: the ESP 8266 briefly outputs data at 74880 baud. (The ESP32 does not, it uses 115200 from the start.) As others have mentioned, this looks like a baud rate mismatch. If you are 100% sure that you are receiv...