Search found 360 matches

by scruss
Mon Aug 08, 2022 5:17 pm
Forum: General Discussion and Questions
Topic: Release (machine.)Pin resources?
Replies: 4
Views: 2191

Re: Release (machine.)Pin resources?

With MicroPython, that's left up to you. Since pins aren't guaranteed to be initialized in a known state on powerup, it might be hard to know what state to leave them in.
by scruss
Mon Aug 08, 2022 2:28 pm
Forum: General Discussion and Questions
Topic: Any chance some variant of socket library has support for socket.gethostbyaddr?
Replies: 2
Views: 1763

Re: Any chance some variant of socket library has support for socket.gethostbyaddr?

I doubt it: gethostbyaddr is no longer recommended for general use: The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete. Applications should use getaddrinfo(3), getnameinfo(3), and gai_strerror(3) instead. (source: gethostbyname(3) Linux manual page). MicroPython...
by scruss
Mon Aug 08, 2022 1:29 pm
Forum: Programs, Libraries and Tools
Topic: Flight simulator controls Micropython
Replies: 8
Views: 5447

Re: Flight simulator controls Micropython

The CircuitPython team have put more emphasis on USB HID control access than the MicroPython developers. The reason there are more Arduino tutorials is that the Arduino has been around for decades longer, and search engines prioritize old stuff. There are also the Arduino Leonardo and Micro boards w...
by scruss
Sun Aug 07, 2022 6:19 pm
Forum: ESP8266 boards
Topic: Problem with I2C.scan() on ESP8266 with 1.19.1? [Solved]
Replies: 4
Views: 23644

Re: Problem with I2C.scan() on ESP8266 with 1.19.1?

I found it crashes if you have no I2C devices attached, but runs properly if you do. MicroPython v1.19.1 on 2022-06-18 on a D1 mini v4.
by scruss
Sun Aug 07, 2022 5:08 pm
Forum: Raspberry Pi microcontroller boards
Topic: Setting hostname on Pico W
Replies: 12
Views: 43097

Re: Setting hostname on Pico W

I don't think it's in the nightlies yet. I just tried the same uf2 as you did, and the only known config parameters are channel , mac , security , ssid and txpower : # check WLAN config values # table from # https://docs.micropython.org/en/latest/library/network.WLAN.html import network sta_if = net...
by scruss
Sun Aug 07, 2022 4:32 pm
Forum: Programs, Libraries and Tools
Topic: nrf24l01 with Pico
Replies: 1
Views: 1476

Re: nrf24l01 with Pico

It's not surprising that rp2 isn't supported, since this code was last touched before the Raspberry Pi Pico was launched. Possible (untested) solution: add the following lines before the else: on line 23: elif usys.platform == "rp2": # Hardware SPI cfg = {"spi": 0, "miso": 4, "mosi": 7, "sck": 6, "c...
by scruss
Sun Aug 07, 2022 4:17 am
Forum: General Discussion and Questions
Topic: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?
Replies: 18
Views: 30330

Re: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?

I'm not sure, but uasyncio might include some code that needs to be compiled into the MicroPython binary. I don't think it's something you can copy across
by scruss
Sat Aug 06, 2022 7:35 pm
Forum: General Discussion and Questions
Topic: Frustrations with missing libraries?
Replies: 18
Views: 26778

Re: Frustrations with missing libraries?

I'm not sure the community is willing to change MicroPython packaging more similar to CPython, though. When I introduced pipkin and hoped to spark discussion, I got no replies neither in MicroPython forum (https://forum.micropython.org/viewtopic.php?f=15&t=11783) nor in CircuitPython forum (https:/...
by scruss
Fri Aug 05, 2022 4:09 pm
Forum: General Discussion and Questions
Topic: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?
Replies: 18
Views: 30330

Re: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?

So the last flash you did gave every indication of being successful. The last time I (grudgingly) flashed these things I had to remember to a) remove the GPIO0 - GND jumper or connection required to put it into flash mode; b) physically disconnect and reconnect the device to USB for the ESP01 to res...
by scruss
Fri Aug 05, 2022 3:23 pm
Forum: General Discussion and Questions
Topic: Frustrations with missing libraries?
Replies: 18
Views: 26778

Re: Frustrations with missing libraries?

Check with help('modules') in the REPL, but ucryptolib is a builtin module on the ESP32 I have here. Check that you have the most recent version.

This is really a different question to the OP's, so maybe start a new thread in the ESP32 boards section.