if you want things changed in MicroPython, you need to raise an issue. Mentioning in on this forum doesn't get it worked on.
Thankfully, there is an open issue for this, and it'll likely make it into the next release in a few months.
Search found 360 matches
- Thu Jul 28, 2022 4:53 pm
- Forum: General Discussion and Questions
- Topic: A dhcp_hostname query fails on MicroPython v1.19.1?
- Replies: 5
- Views: 2110
- Thu Jul 28, 2022 4:48 pm
- Forum: General Discussion and Questions
- Topic: Using machine Pin class no way to get pin number or channel when running on Pi Pico?
- Replies: 7
- Views: 9946
Re: Using machine Pin class no way to get pin number or channel when running on Pi Pico?
I suspect it might break for the new named rather than numbered pins on the RP2040: the LED pin, formerly Pin(25), is now Pin("LED").
- Wed Jul 27, 2022 9:01 pm
- Forum: General Discussion and Questions
- Topic: A dhcp_hostname query fails on MicroPython v1.19.1?
- Replies: 5
- Views: 2110
Re: A dhcp_hostname query fails on MicroPython v1.19.1?
Documentation states that I can query as well as set the dhcp_hostname, welll I guess the query is bugged? No, documentation states (under WLAN.config ): Following are commonly supported parameters (availability of a specific parameter depends on network technology type, driver, and MicroPython por...
- Wed Jul 27, 2022 7:26 pm
- Forum: ESP32 boards
- Topic: How do you compile and flash micropython to M5StickC plus?
- Replies: 3
- Views: 3890
Re: How do you compile and flash micropython to M5StickC plus?
I uploaded the esp32/GENERIC firmware binary, and I'm getting reliable operation. Even though it has the ESP32-PICO, the M5StickC and M5StickCplus don't have SPIRAM
- Wed Jul 27, 2022 3:20 pm
- Forum: General Discussion and Questions
- Topic: How to set host name on Pico W?
- Replies: 2
- Views: 2203
Re: How to set host name on Pico W?
You can't: Can't set hostname in AP mode · Issue #8906 · micropython/micropython
There's an open PR to fix this, but it hasn't yet been accepted.
(previously)
There's an open PR to fix this, but it hasn't yet been accepted.
(previously)
- Tue Jul 26, 2022 6:15 pm
- Forum: General Discussion and Questions
- Topic: howto get itemsize of an array
- Replies: 2
- Views: 3887
Re: howto get itemsize of an array
This is a bit of a hack and might create large objects that you don't want, but:
returns the size of each element. Minimally tested ("seems to work with short arrays of b, i and q; good enough").
Code: Select all
len(arr.decode()) // len(arr)
- Tue Jul 26, 2022 2:40 pm
- Forum: ESP8266 boards
- Topic: Oled and Led on an esp01
- Replies: 8
- Views: 30306
Re: Oled and Led on an esp01
I honestly believe there aren't enough pins on an ESP-01 to do this.modulusmath wrote: ↑Tue Jul 26, 2022 3:40 amI can still write to the OLED and access the 'net. Am I close or is it like I'm way off?
How about rendering the OLED display in inverse video if it's over your warning temperature? It's kind of a big LED, after all ...
- Tue Jul 26, 2022 2:22 pm
- Forum: General Discussion and Questions
- Topic: Convert Byte-String to Ascii-String -SOLVED
- Replies: 8
- Views: 12219
Re: Convert Byte-String to Ascii-String -SOLVED
You'll always need (u)binascii for this kind of data, as it's a series of hexadecimal digits encoded as ASCII bytes. If it were bytes, the input would be b'On'
- Mon Jul 25, 2022 8:55 pm
- Forum: General Discussion and Questions
- Topic: Using array contents to set up GPIO Pins
- Replies: 4
- Views: 3150
Re: Using array contents to set up GPIO Pins
I'm mostly with karfas — it's better to use readable names. The one time I found it useful to put pin definitions in an array was for accessing the row of 6 LEDs on the really old ESP8266-12 dev boards . They weren't arranged in any logical order, so I used this definition: leds = [ Pin( 2, Pin.OUT,...
- Mon Jul 25, 2022 5:58 pm
- Forum: Other Boards
- Topic: 74HC595 Micropython Driver for 7-segment display
- Replies: 3
- Views: 22074
Re: 74HC595 Micropython Driver for 7-segment display
Code: Select all
>>> import TM74HC595
>>> TM74HC595.TM74HC595Controller(sclk=21, rclk=22, dio=23, num_displays=4).test()