Search found 463 matches
- Sat May 22, 2021 2:26 pm
- Forum: General Discussion and Questions
- Topic: datetime not working out of the box
- Replies: 18
- Views: 10436
Re: datetime not working out of the box
I would not count on PRs to micropython-lib being merged anytime soon. Many have been languishing for years. There has been an effort to renovate and restructure micropython-lib about a year ago, but it seems to have fizzled out and nothing has happened. As to maintaining your own version, I don't s...
- Sat May 22, 2021 2:13 pm
- Forum: ESP8266 boards
- Topic: MicroPython library for HID (Keyboard) for ESP8266?
- Replies: 2
- Views: 2254
Re: MicroPython library for HID (Keyboard) for ESP8266?
The ESP8266 does not have native USB capabilities, so AFAIK that's not possible, at least not in MicroPython. You can use an USB co-processor (programmed in C, e.g. an arduino micro with V-USB) or a microcontroller that has native USB support like an stm32fx or an rp2040 (pico). See also: https://fo...
- Sat May 22, 2021 1:39 pm
- Forum: General Discussion and Questions
- Topic: checking a value across lots of Constants
- Replies: 3
- Views: 2542
Re: checking a value across lots of Constants
It depends a bit on what you want to do when you have matched a constant, but usually in Python you'd have a dictionary mapping constants as keys to functions as values: COMMANDS = { _CMD_WRITE: do_write, _CMD_READ: do_read, _CMD_DELETE: do_delete, } # etc. cmd = read_command() func = COMMANDS.get(c...
- Thu May 20, 2021 10:58 pm
- Forum: General Discussion and Questions
- Topic: Bitbanging DVI only possible on RP2040?
- Replies: 1
- Views: 1887
Re: Bitbanging DVI only possible on RP2040?
Firstly, is this something that would be possible on any device (I'm particularly interested in the esp32) or does it appear to linked directly to the PIO features on the RP2040? No. Yes. Secondly, I am assuming that if it uses the PIO this code would have to be written outside of micropython, No, ...
- Thu May 20, 2021 10:48 pm
- Forum: Programs, Libraries and Tools
- Topic: Library xmlrpc.client
- Replies: 1
- Views: 2203
Re: Library xmlrpc.client
To my knowledge, nobody has written an xmlrpc client library for MicroPython. So you would have to write one yourself. This should be possible, since MicroPython provides all the necessary ingredients, most importantly network sockets. But it doesn't have an XML generation or parsing library, becaus...
- Thu May 20, 2021 10:38 pm
- Forum: General Discussion and Questions
- Topic: my own list of successful MicroPython products
- Replies: 3
- Views: 2531
Re: my own list of successful MicroPython products
I think that's a valuable effort. You may also find some more candidates in the monthly MicroPython news reports that Matt Trentini delivers at the Melbourne MicroPython Meetup.
- Thu May 20, 2021 10:32 pm
- Forum: Programs, Libraries and Tools
- Topic: How to write zephyr port?
- Replies: 2
- Views: 2993
Re: How to write zephyr port?
I think the right people to ask about are the ones at adafruit, which know about CircuitPython. You won't find those here on this forum.
- Thu May 20, 2021 10:29 pm
- Forum: ESP32 boards
- Topic: Does Bluetooth MicroPython code available for ESP32
- Replies: 3
- Views: 2500
- Thu May 20, 2021 10:26 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: How to mount pen-drive to pi pico
- Replies: 2
- Views: 2868
Re: How to mount pen-drive to pi pico
You would need USB host mass storage support for that, which MicroPython doesn't have. The pico is capable of being a USB host, in principle, but atm you would need to write C code for that.
- Wed May 19, 2021 10:52 pm
- Forum: Other Boards
- Topic: [w600] socket.connect() hangs
- Replies: 4
- Views: 3697
Re: [w600] socket.connect() hangs
The original poster was talking about socket.connect(), not network.WLAN().connect().