Search found 463 matches

by SpotlightKid
Sat May 22, 2021 2:26 pm
Forum: General Discussion and Questions
Topic: datetime not working out of the box
Replies: 18
Views: 10408

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...
by SpotlightKid
Sat May 22, 2021 2:13 pm
Forum: ESP8266 boards
Topic: MicroPython library for HID (Keyboard) for ESP8266?
Replies: 2
Views: 2250

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...
by SpotlightKid
Sat May 22, 2021 1:39 pm
Forum: General Discussion and Questions
Topic: checking a value across lots of Constants
Replies: 3
Views: 2533

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...
by SpotlightKid
Thu May 20, 2021 10:58 pm
Forum: General Discussion and Questions
Topic: Bitbanging DVI only possible on RP2040?
Replies: 1
Views: 1883

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, ...
by SpotlightKid
Thu May 20, 2021 10:48 pm
Forum: Programs, Libraries and Tools
Topic: Library xmlrpc.client
Replies: 1
Views: 2202

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...
by SpotlightKid
Thu May 20, 2021 10:38 pm
Forum: General Discussion and Questions
Topic: my own list of successful MicroPython products
Replies: 3
Views: 2524

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.
by SpotlightKid
Thu May 20, 2021 10:32 pm
Forum: Programs, Libraries and Tools
Topic: How to write zephyr port?
Replies: 2
Views: 2978

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.
by SpotlightKid
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.
by SpotlightKid
Wed May 19, 2021 10:52 pm
Forum: Other Boards
Topic: [w600] socket.connect() hangs
Replies: 4
Views: 3683

Re: [w600] socket.connect() hangs

The original poster was talking about socket.connect(), not network.WLAN().connect().