Jim Mussared

Results 38 issues of Jim Mussared

Based on suggestions from @stinos in https://github.com/micropython/micropython/pull/8813#issuecomment-1252440936

This is v2 of https://github.com/micropython/micropython/pull/7542, which itself is based on https://github.com/adafruit/circuitpython/pull/4903 This version only includes the "slot" approach, and replaces the existing sparse representation. The basic idea is that where...

py-core

I missed this in January but the OSHWA published their guidelines for the new pins which was in the works for a couple of years -- https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names/ I'm already starting...

enhancement

This came up in https://github.com/micropython/micropython-lib/pull/527, and we have a workaround there, but getting this right will be required to make os.path work correctly. The windows port current returns `/` from...

enhancement

Originally from a discussion here: https://github.com/orgs/micropython/discussions/9121#discussioncomment-3492083 (@gmrza @robert-hh ) This snippet will successfully receive IRQs. (The non-threaded version works fine). ```py import machine import _thread def handler(p): print('irq', p.value()) def...

bug

Originally reported in the forum: https://forum.micropython.org/viewtopic.php?f=21&t=12965 On the Pico W: ```py import struct, socket def inet_aton(addr): return bytes(map(int, addr.split("."))) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.bind(("", 5007)) s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, struct.pack(">4sI", inet_aton("224.1.1.1"), 0))...

bug

This provides an async REPL with the following features: - Run interactive REPL in the background. - Execute statements using await. - Simple history. See documentation and example here https://github.com/jimmo/micropython-lib/tree/aiorepl/micropython/aiorepl

This replaces the options that could be specified previously to include and require. The `aioble` package provides the same as the default options did previously. Optional dependencies can now be...

Thanks @miguelgrinberg for this fantastic library. I have lost count of how many times I have recommended it in the MicroPython forums and Discord! The MicroPython project has recently implemented...

Thanks for writing this guide @peterhinch ! ### 1. Introduction: I think it's worth adding micropython.schedule as another context, or possibly more accurately splitting (1) into: 1) Hard ISR 2)...