To save space, MicroPython doesn't include the whole of the Python standard library.
However you can install some things (including timeit) manually from micropython-lib -- e.g. https://github.com/micropython/micropyt ... ter/timeit
Search found 2754 matches
- Thu Nov 07, 2019 8:47 pm
- Forum: General Discussion and Questions
- Topic: timeit function not available in machine module
- Replies: 6
- Views: 3257
- Thu Nov 07, 2019 11:34 am
- Forum: ESP32 boards
- Topic: Can not import urequests
- Replies: 5
- Views: 8333
Re: Can not import urequests
I think these new builds must be being done with the default manifest, rather than the release one.
In the meantime
I'll find out about getting the nightly builds fixed to use the release manifest.
In the meantime
Code: Select all
import upip
upip.install('micropython-urequests')
- Thu Nov 07, 2019 5:34 am
- Forum: ESP32 boards
- Topic: upip not working with IDF4 builds
- Replies: 10
- Views: 6401
- Thu Nov 07, 2019 4:47 am
- Forum: ESP32 boards
- Topic: upip not working with IDF4 builds
- Replies: 10
- Views: 6401
Re: upip not working with IDF4 builds
Thanks for the report. I can repro the issue here, but only on non-psram devices (i.e. the generic build). The ENOMEM is actually not related to the MicroPython heap running out of memory. The failure is coming out of mbedtls. I'll look into it. I wonder if the allocator changes in IDF4 somehow such...
- Thu Nov 07, 2019 4:19 am
- Forum: Pyboard D-series
- Topic: BLE - Reading the connected device RSSI
- Replies: 2
- Views: 2892
Re: BLE - Reading the connected device RSSI
We don't currently provide an interface for this (there's a low-level mechanism for this in the BLE stack though). We'd have to add something like ble.gap_rssi(conn_handle) At the moment the only way to access rssi is during scan. Can you please add a comment to https://github.com/micropython/microp...
- Wed Nov 06, 2019 9:23 am
- Forum: General Discussion and Questions
- Topic: waiting for an interrupt flag to be set
- Replies: 11
- Views: 6365
Re: waiting for an interrupt flag to be set
Ok thanks for the details, I will investigate!
- Wed Nov 06, 2019 5:35 am
- Forum: Pyboard D-series
- Topic: BLE Broadcasts vs Scans
- Replies: 7
- Views: 6635
Re: BLE Broadcasts vs Scans
Yes it's most likely exactly that. Try:
which is the fastest allowable scan. The default is that it spends a lot of time sleeping in order to save power. See https://github.com/micropython/micropython/pull/5190 for more info.
Code: Select all
ble.gap_scan(duration_ms, 30000, 30000)
- Wed Nov 06, 2019 3:52 am
- Forum: Pyboard D-series
- Topic: BLE Broadcasts vs Scans
- Replies: 7
- Views: 6635
Re: BLE Broadcasts vs Scans
A beacon is an advertiser that includes some application-specific data in its advertising payload. (Normally, devices would use this payload to indicate which services they support, appearance, name, etc). A scanner sees the advertising payload and extracts the beacon data. This process is entirely ...
- Tue Nov 05, 2019 9:08 am
- Forum: General Discussion and Questions
- Topic: waiting for an interrupt flag to be set
- Replies: 11
- Views: 6365
Re: waiting for an interrupt flag to be set
What I am trying to achieve is an async connect ! Technically that's a synchronous connect, but yes, definitely useful! I would like to make a properly asyncio-based wrapper around the low-level API, so you can have the best of both worlds. Anyway, what you're doing is fine -- modifying a value fro...
- Tue Nov 05, 2019 7:56 am
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93806
Re: ulab, or what you will - numpy on bare metal
I should add, on SF6 the external qspiflash is currently unused for storing code as the main firmware fits entirely in internal flash.