Search found 4241 matches

by pythoncoder
Mon Jul 06, 2020 5:58 am
Forum: MicroPython pyboard
Topic: How to know when it's safe to restart after a write to flash
Replies: 5
Views: 113

Re: How to know when it's safe to restart after a write to flash

Unlike a PC a Pyboard is a bare-metal system. There is no underlying OS, no background tasks and no concurrency. So the file closure implied by completion of your context manager should mean that it is safe to reboot.
by pythoncoder
Mon Jul 06, 2020 5:37 am
Forum: ESP32 boards
Topic: sehedule module, is there a micropython version
Replies: 3
Views: 96

Re: sehedule module: a uasyncio version?

... Though having an asyncio version of schedule would be very cool... ;) That is an interesting idea. The library is clearly excellent for its intended application: cron-like scheduling on a PC. The question is how suitable it is for firmware use, and whether it might be adapted. The schedule team...
by pythoncoder
Sun Jul 05, 2020 5:20 pm
Forum: MicroPython pyboard
Topic: How to know when it's safe to restart after a write to flash
Replies: 5
Views: 113

Re: How to know when it's safe to restart after a write to flash

The precaution is to disable MSC mode. Failing that, avoid mounting the filesystem on a PC. Sharing the filesystem between a PC and code which updates the contents will lead to corruption.
by pythoncoder
Sun Jul 05, 2020 8:17 am
Forum: ESP32 boards
Topic: sehedule module, is there a micropython version
Replies: 3
Views: 96

Re: sehedule module, is there a micropython version

I would look at uasyncio which is the MicroPython version of CPython's asyncio. There is a tutorial here.
by pythoncoder
Sun Jul 05, 2020 7:54 am
Forum: Development of MicroPython
Topic: Does Pyboard D support UART flow control?
Replies: 2
Views: 62

Re: Does Pyboard D support UART flow control?

Those PR's seem to be about ESP32 (your own PR changes only docs and ports/esp32/machine_uart.c ). The query is about the Pyboard D. While I haven't tested this, I'd be very surprised if the Pyboard D didn't support it exactly as per the Pyboard 1.x. Support is via the pyb module which is shared by ...
by pythoncoder
Sun Jul 05, 2020 7:47 am
Forum: Drivers for External Components
Topic: uasyncio and display
Replies: 12
Views: 167

Re: uasyncio and display

The error suggests you're not running uasyncio V3. As stated at the start of the tutorial you need to install the latest daily build of firmware. Issue

Code: Select all

import uasyncio as asyncio
asyncio.__version__
If you get a tuple (3, 0, 0) then you're running V3. An exception means you're not.
by pythoncoder
Sun Jul 05, 2020 7:42 am
Forum: General Discussion and Questions
Topic: IR Driver
Replies: 2
Views: 56

Re: IR Driver

Your first step is to determine the protocol of the remote control to see if it's one of the supported types. Wire up your decoder chip and run the acquire test as described in the receiver doc. If you press a button on the remote, the script will try to figure out what protocol is in use.
by pythoncoder
Sat Jul 04, 2020 8:57 am
Forum: ESP32 boards
Topic: RMT pin state
Replies: 7
Views: 258

Re: RMT pin state

RMT is under active development on GitHub at the moment. Aims are to support the carrier and to fix bugs. You may want to follow or contribute.
by pythoncoder
Sat Jul 04, 2020 8:45 am
Forum: MicroPython pyboard
Topic: How to know when it's safe to restart after a write to flash
Replies: 5
Views: 113

Re: How to know when it's safe to restart after a write to flash

Please see this post.

tl;dr File corruption will occur unless you take specific precautions.
by pythoncoder
Fri Jul 03, 2020 5:10 am
Forum: General Discussion and Questions
Topic: Monitor GPIO Input with uselect?
Replies: 5
Views: 226

Re: Monitor GPIO Input with uselect?

Bear in mind that pycopy is developed by the author of uasyncio V2, and its uasyncio is an updated version of that design. Hopefully some of the bugs have been fixed. Official MicroPython uses uasyncio V3 which is a complete rewrite. A key aim of the V3 design is improved CPython compatibility. Impl...