+5 years... check out aiorepl:
https://github.com/micropython/micropyt ... on/aiorepl
Search found 9 matches
- Mon May 29, 2023 4:46 am
- Forum: MicroPython pyboard
- Topic: I want to use REPL while using uasyncio
- Replies: 3
- Views: 75343
- Fri May 15, 2020 2:03 am
- Forum: Pyboard D-series
- Topic: ADC Trigger Interrupt on Threshold
- Replies: 7
- Views: 5791
Re: ADC Trigger Interrupt on Threshold
The requirement is for ~2.5ms reaction time, so that's achievable with polling. However, the async scheduler is already heavily loaded with high-level tasks, so I can't rely on that. I've settled for a design that will: Configure ADC to read cyclically pyb.Timer interrupt to check AWD flag, to run e...
- Wed May 13, 2020 12:13 am
- Forum: Pyboard D-series
- Topic: ADC Trigger Interrupt on Threshold
- Replies: 7
- Views: 5791
Re: ADC Trigger Interrupt on Threshold
I believe I've got most of what I need (except time) ;) With the link you gave me Peter, and the example in pyb.ADC for v1.9.3 . Is it possible to assign a python callback to an interrupt vector?... is that possible from within python? For example: import pyb import stm # ... configure ADC for conti...
- Tue May 05, 2020 11:06 pm
- Forum: Pyboard D-series
- Topic: ADC Trigger Interrupt on Threshold
- Replies: 7
- Views: 5791
Re: ADC Trigger Interrupt on Threshold
The thread I referenced was in the ESP8266 forum, so I was hoping your mention of it "not currently supported" being limited to that architecture. I'll do some experimenting, and post back here with what I find. If anything's worth a PR, I'll contribute that. In the meantime, anyone else's experienc...
- Tue May 05, 2020 4:47 am
- Forum: Pyboard D-series
- Topic: ADC Trigger Interrupt on Threshold
- Replies: 7
- Views: 5791
ADC Trigger Interrupt on Threshold
On a Pyboard D with STM32F767, is it possible to configure an ADC as a comparator? In other words: to trigger an interrupt on an ADC measuring above, or below a configurable threshold? From: STM32F767 Datasheet 2.41 Analog-to-digital converters (ADCs) The ADC can be served by the DMA controller. An ...
- Tue Jul 31, 2018 6:20 am
- Forum: General Discussion and Questions
- Topic: Kicad files > shield
- Replies: 1
- Views: 7263
Re: Kicad files > shield
Thanks bibile! I put that straight in to one of my projects, it saved me from making it myself. 2 cosmetic improvements I can see: - Fill rectangle's background - Y6: label "CANTX" should be "CANTX2" I'm new to KiCAD too, so when it comes to practical advice for pin types & other parameters... I hav...
- Mon Jul 16, 2018 5:09 am
- Forum: MicroPython pyboard
- Topic: Windows pyboard serial_number from python?
- Replies: 1
- Views: 1900
Re: Windows pyboard serial_number from python?
Yep... windows registry solution is as follows: >>> import re >>> from serial.tools.list_ports import comports >>> c = comports()[0] >>> id_regex = re.compile(r'VID:PID=(?P<VID>\w+?):(?P<PID>\w+)') >>> match = id_regex.search(c.usb_info()) >>> import winreg >>> key = winreg.OpenKey( ... winreg.HKEY_...
- Mon Jul 16, 2018 2:16 am
- Forum: MicroPython pyboard
- Topic: Windows pyboard serial_number from python?
- Replies: 1
- Views: 1900
Windows pyboard serial_number from python?
I'm trying to uniquely identify a pyboard's COM port from the OS. So essentially comport_of_pyboard('3976346C3436') returns 'COM3' (or None, if the requested pyboard is not connected) I can get what I need on Linux with: >>> from serial.tools.list_ports import comports >>> ports = comports() >>> por...
- Mon Jul 09, 2018 3:47 am
- Forum: MicroPython pyboard
- Topic: CAN with extframe=True do not receive message with standard ID
- Replies: 3
- Views: 4708
Re: CAN with extframe=True do not receive message with standard ID
I'm attempting to do the same thing (use a pyboard as a node for both extended and standard addressing).
For reference, this issue has been raised recently https://github.com/micropython/micropython/issues/3916
For reference, this issue has been raised recently https://github.com/micropython/micropython/issues/3916