Search found 36 matches
- Sat Oct 16, 2021 11:19 pm
- Forum: Development of MicroPython
- Topic: DMA Memory vs. Sockets
- Replies: 0
- Views: 6666
DMA Memory vs. Sockets
When something in MP allocates DMA-able memory on ESP32 (e.g. this micropython-hybrid display driver from Russ Hughes), this leads to instability in large socket reads/writes. I noticed this using Robert-hh's uftpd . When using uftpd with a DMA-backed SPI driven display active, it can't perform larg...
- Tue Oct 12, 2021 10:12 pm
- Forum: Programs, Libraries and Tools
- Topic: Add MicroPython libraries to VS Code?
- Replies: 1
- Views: 3321
Re: Add MicroPython libraries to VS Code?
The micropython-stubs project has collected a number of different micropython "stubs" modules (basically class/function definitions without any content). They include directions for use with VSCode. They are now working on LVGL micropython bindings too.
- Tue Oct 12, 2021 1:23 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio-friendly REPL?
- Replies: 0
- Views: 1314
uasyncio-friendly REPL?
I've found asyncio to be very powerful for developing network-attached uPython apps with lots of interacting delays and send/receive's. But one limitation for development is that uasyncio.run (required for any task to run) blocks the REPL. I wonder if it would be possible to enable the uasyncio even...
- Tue Aug 31, 2021 10:52 pm
- Forum: Programs, Libraries and Tools
- Topic: mpremote over telnet on ESP32
- Replies: 1
- Views: 1999
Re: mpremote over telnet on ESP32
OK, by digging through pyboard.py and console.py, I see that it expects a telnet server which prompts for login and password. This is pretty easy to bypass, but that next leads to AttributeError: 'TelnetToSerial' object has no attribute 'fd' and the choice comment (in console.py) # TODO pyb_serial m...
- Tue Aug 31, 2021 2:14 pm
- Forum: General Discussion and Questions
- Topic: working with file systems
- Replies: 10
- Views: 4776
Re: working with file systems
It is a matter of personal preference, but with all WiFi capable devices I prefer to use ftp. For ESP8266, EP32, PybD, W600 an others I made a small ftp server. https://github.com/robert-hh/FTP-Server-for-ESP8266-ESP32-and-PYBD But I'm using mpremote as well for all devices. I love your FTP server,...
- Tue Aug 31, 2021 2:00 pm
- Forum: Programs, Libraries and Tools
- Topic: mpremote over telnet on ESP32
- Replies: 1
- Views: 1999
mpremote over telnet on ESP32
I'm evaluating the new mpremote tool, which works really well over serial. The mount command is especially powerful. I'd like to use mpremote's (via pyboard's) in-built telnet-based connection. This requires a telnet server running (MPv1.15), which I still don't think is built-in. I have utelnetserv...
- Thu Aug 26, 2021 5:07 pm
- Forum: General Discussion and Questions
- Topic: (u)asyncio task cancellation spreading like a virus
- Replies: 11
- Views: 8547
Re: (u)asyncio task cancellation spreading like a virus
Reviving an old discussion, but I don't see the issue in the initial posted code. The docs say (emphasis added): To cancel a running Task use the cancel() method. Calling it will cause the Task to throw a CancelledError exception into the wrapped coroutine. If a coroutine is awaiting on a Future obj...
- Sun Mar 21, 2021 4:04 pm
- Forum: Programs, Libraries and Tools
- Topic: (help needed): Migrate from Python to MicroPython
- Replies: 2
- Views: 2323
Re: (help needed): Migrate from Python to MicroPython
Complicated python libraries don't typically "just work" in MicroPython without some porting, since more advanced supporting libraries are pared down. Looks like your scraper library uses requests. There are several µPy adaptations of this library called "urequests". So you'd need to explore how to ...
- Sat Mar 20, 2021 1:37 pm
- Forum: Programs, Libraries and Tools
- Topic: autoftp: Super-fast Micropython Development
- Replies: 11
- Views: 5451
Re: autoftp: Super-fast Micropython Development
Short update on autoftp: we patched uftpd to include a new SITE FTP command that allows you to exec python statements. autoftp v0.2 makes use of this to enable stopping & rerunning MicroPython modules in situ , automatically. Check out the new video to see it in action, or see the example project de...
- Sun Mar 14, 2021 2:23 pm
- Forum: Programs, Libraries and Tools
- Topic: autoftp: Super-fast Micropython Development
- Replies: 11
- Views: 5451
Re: autoftp: Super-fast Micropython Development
when passing the file location to mpy-cross to create a .mpy file, that file would be created in the same directory as the original .py file, so my project directory would be cluttered with .mpy files. Not if I add a -k (update: added as -k or --updelete): autoftp host.local -p '*.mpy' -s '*.py, mp...