Search found 36 matches

by jcw
Wed Jul 08, 2020 10:47 am
Forum: ESP32 boards
Topic: Single interrupt trigger performing callback function several times.
Replies: 4
Views: 198

Re: Single interrupt trigger performing callback function several times.

Still sounds like electrical contact bounce to me - resistors won't solve that. Google for "button debounce", e.g.

https://www.allaboutcircuits.com/techn ... l-with-it/
by jcw
Mon Jun 29, 2020 2:36 pm
Forum: Drivers for External Components
Topic: bme680 adafruit on pyboard
Replies: 13
Views: 722

Re: bme680 adafruit on pyboard

Depending on how I2C addresses are exposed, the lower bit may not be an address bit - try 0x78.

(I haven't looked into the code or the BME680 ....)
by jcw
Sat Jun 20, 2020 12:25 am
Forum: General Discussion and Questions
Topic: convert in HEX
Replies: 3
Views: 265

Re: convert in HEX

Did you mean binary to hex?

Code: Select all

>>> mem=[1,0,0,1,0,1,0,0,0,0,0,0]
>>> ''.join(map(str, mem))
'100101000000'
>>> int(''.join(map(str, mem)),2)
2368
>>> '%x' % int(''.join(map(str, mem)),2)
'940'
by jcw
Tue Jun 09, 2020 10:22 pm
Forum: Programs, Libraries and Tools
Topic: asynchronous wlan scans
Replies: 5
Views: 345

Re: asynchronous wlan scans

Dunno, sorry.
by jcw
Tue Jun 09, 2020 3:57 pm
Forum: Programs, Libraries and Tools
Topic: asynchronous wlan scans
Replies: 5
Views: 345

Re: asynchronous wlan scans

I don't know how it works, but it looks like the code you're after can be found here:

https://github.com/micropython/micropyt ... #L439-L473
by jcw
Mon Jun 08, 2020 11:40 am
Forum: General Discussion and Questions
Topic: own IP address?
Replies: 8
Views: 413

Re: own IP address?

Thanks. Kevin, it's very easy to integrate any git repository into your own setup, e.g.

Code: Select all

git submodule add https://git.jeelabs.org/jcw/pythonx jcw-pythonx
Perhaps not widely known due to GitHub's popularity, but git itself is a distributed version control system.
by jcw
Mon Jun 08, 2020 11:32 am
Forum: Drivers for External Components
Topic: A simple radio link between two Pyboards
Replies: 4
Views: 2063

Re: A simple radio link between two Pyboards

Ok, got your setup going on two F407 boards. One thing I had to change is the connection rate: radio = NRF24L01(config.spi, config.csn, config.ce, config.channel, 32) radio.set_power_speed(0x06, 0x08) For some reason, my nRF24L01+ modules refuse to operate at 250 kbps, so I set them to 2 Mbps. Apart...
by jcw
Sun Jun 07, 2020 5:46 pm
Forum: Drivers for External Components
Topic: A simple radio link between two Pyboards
Replies: 4
Views: 2063

Re: A simple radio link between two Pyboards

Very nice! Some setup involved, but it looks like I have everything needed - looking forward to try out the stream version.
by jcw
Sun Jun 07, 2020 3:30 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 105
Views: 11449

Re: ulab, or what you will - numpy on bare metal

I don't know what the status of ulab is, but here is some information about how external flash is used on the SF2/SF3/SF6. From the info at https://store.micropython.org/product/PYBD-SF2-W4F2 : 2MiB external QSPI flash with execute capabilities to extend internal flash Additional 2MiB external QSPI ...
by jcw
Sat Jun 06, 2020 3:09 pm
Forum: General Discussion and Questions
Topic: Avoiding "async def" creep
Replies: 21
Views: 1759

Re: Avoiding "async def" creep

You can't make a silk purse out of a sow's ear Heh. Yes, all good points. Note that block I/O speed can also depend on response latency, i.e. when reading a block on an SD card, there's a delay before actual data comes in (in the order of few ms, I think). There's a 100x retry loop here: https://gi...