Adds support for Adafruit's MacroPad RP2040#7
Open
jfurcean wants to merge 2 commits intoexecuc:mainfrom
Open
Conversation
This was referenced Oct 6, 2021
4c9b05f to
4ba63f5
Compare
Author
|
@execuc and @caternuson can you review? |
Contributor
|
@jfurcean Were you able to build this locally and test it on a MacroPad? |
Author
|
Yes, it required the other two PRs above to be installed locally as well. The display doesn't work due to an existing issue in I tested with the below code. import board
import time
import neopixel
import keypad
pixels = neopixel.NeoPixel(board.NEOPIXEL, 12)
for i in range(12):
pixels[i] = (0,255,0)
time.sleep(.5)
for i in range(12):
pixels[i] = (0,0,0)
time.sleep(.5)
key_pins = (board.KEY1, board.KEY2, board.KEY3, board.KEY4, board.KEY5, board.KEY6,
board.KEY7, board.KEY8, board.KEY9, board.KEY10, board.KEY11, board.KEY12)
keys = keypad.Keys(key_pins, value_when_pressed=False, pull=True)
while True:
event = keys.events.get()
if event:
print(event)I also tested i2c with the Stemma QT rotary encoder example - https://github.com/adafruit/Adafruit_CircuitPython_seesaw/blob/main/examples/seesaw_rotary_simpletest.py |
Contributor
|
Cool. I tested this real quick locally and it all seems to work. LGTM.. |
|
Do we think this will get merged? |
freemansoft
reviewed
Jan 27, 2025
| #define I2C0_ENABLED 1 | ||
| #define U2IF_I2C0_SDA 20 | ||
| #define U2IF_I2C0_SCL 21 | ||
| // SPI1 |
freemansoft
reviewed
Jan 27, 2025
| #define U2IF_SPI1_CK 26 | ||
| #define U2IF_SPI1_MOSI 27 | ||
| #define U2IF_SPI1_MISO 28 | ||
| // UART1 |
There was a problem hiding this comment.
Why is this UART1 instead of UART0?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TODO