Search found 37 matches

by jcw
Wed Aug 19, 2020 5:18 pm
Forum: Programs, Libraries and Tools
Topic: New version of rshell with better startup for ESP8266 and ESP32
Replies: 9
Views: 10275

Re: New version of rshell with better startup for ESP8266 and ESP32

On macOS, I think the default is to have DTR inactive until the port is opened. If that is used by the ESP, then that might explain the reset-on-open behaviour.
by jcw
Wed Jul 08, 2020 10:47 am
Forum: ESP32 boards
Topic: Single interrupt trigger performing callback function several times.
Replies: 4
Views: 2985

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: 16
Views: 42425

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: 2555

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: 3631

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: 3631

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: 3757

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: 4633

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: 4633

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: 108
Views: 93401

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 ...