You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error running macropad_keyscan.py, possible missing pin definitions in pins.c? #2
First off thanks for writing this code, I cant wait to get it all working and do some proper tinkering!
It's been a bit of a journey but I've managed to get circuit python building the firmware and installed on my RGB macropad. I've successfully run the macropad_backlight.py script and can control the LEDs nicely. However, when I try and run the macropad_keyscan.py I run into an error:
AttributeError: 'module' object has no attribute 'GP6'
One peculiarity, while I remember it, just in case it's relevant is that it seems to have compiled and is running Circuit Python 9.0.0 but it would only work if I used the adafruit libraries for version 8, is that to be expected?
Adafruit CircuitPython 9.0.0-alpha.0-53-g029c7a0caa on 2024-10-19; Framework Laptop 16 Keyboard (CircuitPython) with rp2040
Board ID:framework_inputmodule
UID:DC634802CB433C2C
One peculiarity, while I remember it, just in case it's relevant is that it seems to have compiled and is running Circuit Python 9.0.0 but it would only work if I used the adafruit libraries for version 8, is that to be expected?
9.0.0-alpha.0 is before we updated the MicroPython core to 9.0.0 finals version. So, it is expected to match CP 8. I'd recommend using a newer version of CircuitPython.
ah thanks @tannewt that makes sense, I'll have a go at moving the changes over to a newer build and giving it a test to see how it runs. I've suggested my changes over in the PR, and would love for it to be merged in, however, I'm really not sure what else needs modification before it would be suitable for merging in? If it's just those pin definitions then LGTM 😄 otherwise I'm happy to test and do some basic reverse engineering to figure stuff out but it's not my area of expertise.
Activity
stealthcopter commentedon Oct 19, 2024
One peculiarity, while I remember it, just in case it's relevant is that it seems to have compiled and is running Circuit Python 9.0.0 but it would only work if I used the adafruit libraries for version 8, is that to be expected?
stealthcopter commentedon Oct 21, 2024
I managed to "reverse engineer" the missing pins, for anyone else who might find this comment
pins.cshould be:I've also written a python per-key LED layered macro pad based off this code now! https://github.com/stealthcopter/framework-macropad-python
tannewt commentedon Oct 23, 2024
9.0.0-alpha.0 is before we updated the MicroPython core to 9.0.0 finals version. So, it is expected to match CP 8. I'd recommend using a newer version of CircuitPython.
It would be great if you could get this finished: adafruit/circuitpython#8233
stealthcopter commentedon Oct 24, 2024
ah thanks @tannewt that makes sense, I'll have a go at moving the changes over to a newer build and giving it a test to see how it runs. I've suggested my changes over in the PR, and would love for it to be merged in, however, I'm really not sure what else needs modification before it would be suitable for merging in? If it's just those pin definitions then LGTM 😄 otherwise I'm happy to test and do some basic reverse engineering to figure stuff out but it's not my area of expertise.
@JohnAZoidberg any input here would be appreciated 😄