u2if icon indicating copy to clipboard operation
u2if copied to clipboard

Adds support for Adafruit's MacroPad RP2040

Open jfurcean opened this issue 4 years ago • 5 comments
trafficstars

TODO

  • [x] Get new PID from Adafruit
  • [x] Create PRs for the following two repositories
    • [x] https://github.com/adafruit/Adafruit_Python_PlatformDetect
    • [x] https://github.com/adafruit/adafruit_blinka

jfurcean avatar Oct 06 '21 18:10 jfurcean

@execuc and @caternuson can you review?

jfurcean avatar Oct 13 '21 15:10 jfurcean

@jfurcean Were you able to build this locally and test it on a MacroPad?

caternuson avatar Oct 13 '21 17:10 caternuson

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 Adafruit_Blinka_Displayio https://github.com/adafruit/Adafruit_Blinka_Displayio/issues/54.

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

jfurcean avatar Oct 13 '21 18:10 jfurcean

Cool. I tested this real quick locally and it all seems to work. LGTM..

caternuson avatar Oct 13 '21 19:10 caternuson

Do we think this will get merged?

freemansoft avatar Mar 02 '23 01:03 freemansoft