Search found 1192 matches

by jimmo
Thu Dec 12, 2019 11:49 am
Forum: General Discussion and Questions
Topic: store config/settings...
Replies: 9
Views: 345

Re: store config/settings...

I highly recommend your third option -- write out your config as Python (using `repr` helps here) and load it directly by importing.
by jimmo
Thu Dec 12, 2019 2:58 am
Forum: ESP32 boards
Topic: MicroPython Startup Time
Replies: 26
Views: 1897

Re: MicroPython Startup Time

So where did the 150us come from? Could it be that Damien made a mistake and nobody thought to question it or double check it? OK, so the web site is wrong. Perhaps someone should update it. I suspect that the quote on the website is measuring MicroPython itself. i.e. the time taken from when the f...
by jimmo
Wed Dec 11, 2019 3:04 am
Forum: General Discussion and Questions
Topic: littlefs - advantages & disadvantages
Replies: 30
Views: 2142

Re: littlefs - advantages & disadvantages

I think v1 support is there mostly for people who wanted to migrate existing / devices that were using v1 for whatever purpose or had some specific reason for using it. But that's why support for it isn't compiled in by default.
by jimmo
Wed Dec 11, 2019 2:58 am
Forum: micro:bit boards
Topic: pin digital_read
Replies: 9
Views: 783

Re: pin digital_read

I went looking through my notes from a summer school I used to teach at -- https://github.com/jimmo/ncss-embedded/blob/master/chapters/7-bitbot-neopixels.md This is specifically about using the bit:bot with the micro:bit and MicroPython. There's a code snippet at the end: from microbit import * impo...
by jimmo
Wed Dec 11, 2019 2:42 am
Forum: General Discussion and Questions
Topic: function int.from_bytes Different results
Replies: 1
Views: 139

Re: function int.from_bytes Different results

MicroPython doesn't currently support the "signed" parameter to from_bytes. In the code for from_bytes it says: // TODO: Support signed param (assumes signed=False at the moment) (void)n_args; So it matches the CPython behavior if you set signed=False (which probably isn't what you want). However, t...
by jimmo
Wed Dec 11, 2019 2:35 am
Forum: General Discussion and Questions
Topic: Can A ESP32 Masquerade As A Bluetooth Headset?
Replies: 3
Views: 240

Re: Can A ESP32 Masquerade As A Bluetooth Headset?

Worth mentioning though -- to answer your specific question, yes the ESP32 can do this right now if you write C code against the IDF using Bluedroid. So given that all you want to do is pretend to be a non-functional HFP profile device, it might be quite straightforward to adapt one of the IDF examp...
by jimmo
Wed Dec 11, 2019 2:33 am
Forum: General Discussion and Questions
Topic: Can A ESP32 Masquerade As A Bluetooth Headset?
Replies: 3
Views: 240

Re: Can A ESP32 Masquerade As A Bluetooth Headset?

I'm fairly sure this requires Bluetooth Classic, not BLE. That UUID is the Hands Free Profile (which is part of BT Classic). Not to be confused with a BLE Service UUID. It would be great to support BT Classic on ESP32 and STM32 -- I replied to a query about this on GitHub recently https://github.com...
by jimmo
Tue Dec 10, 2019 3:00 am
Forum: Development of MicroPython
Topic: drivers/dht improvements (take 2)
Replies: 19
Views: 1092

Re: drivers/dht improvements (take 2)

This is really cool - excited to see hardware APIs getting the asyncio treatment. Thanks!

Don't have a DHT22 but I might have a DHT11 somewhere to test with.
by jimmo
Tue Dec 10, 2019 1:49 am
Forum: Development of MicroPython
Topic: xmodem implementation
Replies: 4
Views: 389

Re: xmodem implementation

I'm not sure whether that's talking about an xmodem client, or perhaps some sort of xmodem support in the REPL to send/receive files. Either way, I'm not sure this is a terribly high priority as I haven't seen anyone talking about the former recently, and the latter has other alternatives (such as p...
by jimmo
Sat Dec 07, 2019 12:04 pm
Forum: Development of MicroPython
Topic: Can't build a module to micropython on esp32 port
Replies: 4
Views: 446

Re: Can't build a module to micropython on esp32 port

Possibly try doing a `make clean` and then try again? It's possible that the QSTR generation got confused by files moving around? I tried the instructions at https://docs.micropython.org/en/latest/develop/cmodules.html (which is the "official" version that the guide you're using is extended from) an...