Skip to content

Commit 9dc6d69

Browse files
committed
add prox trinkey and rename others to adafruit_
1 parent 56be830 commit 9dc6d69

File tree

19 files changed

+158
-6
lines changed

19 files changed

+158
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ jobs:
178178
- "TG-Watch"
179179
- "adafruit_feather_rp2040"
180180
- "adafruit_itsybitsy_rp2040"
181+
- "adafruit_neokey_trinkey_m0"
182+
- "adafruit_proxsense_trinkey_m0"
181183
- "adafruit_qtpy_rp2040"
184+
- "adafruit_rotary_trinkey_m0"
185+
- "adafruit_tslide_trinkey_m0"
182186
- "aloriumtech_evo_m51"
183187
- "aramcon_badge_2019"
184188
- "arduino_mkr1300"
@@ -266,7 +270,6 @@ jobs:
266270
- "monster_m4sk"
267271
- "ndgarage_ndbit6"
268272
- "ndgarage_ndbit6_v2"
269-
- "neokey_trinkey_m0"
270273
- "neopixel_trinkey_m0"
271274
- "nfc_copy_cat"
272275
- "nice_nano"
@@ -306,7 +309,6 @@ jobs:
306309
- "raspberry_pi_pico"
307310
- "raytac_mdbt50q-db-40"
308311
- "robohatmm1_m4"
309-
- "rotary_trinkey_m0"
310312
- "sam32"
311313
- "same54_xplained"
312314
- "seeeduino_wio_terminal"
@@ -316,7 +318,6 @@ jobs:
316318
- "shirtty"
317319
- "silicognition-m4-shim"
318320
- "simmel"
319-
- "slide_trinkey_m0"
320321
- "snekboard"
321322
- "sparkfun_lumidrive"
322323
- "sparkfun_nrf52840_micromod"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,6 @@
181181
path = data/nvm.toml
182182
url = https://github.com/adafruit/nvm.toml.git
183183
branch = main
184+
[submodule "frozen/Adafruit_CircuitPython_MIDI"]
185+
path = frozen/Adafruit_CircuitPython_MIDI
186+
url = https://github.com/adafruit/Adafruit_CircuitPython_MIDI

ports/atmel-samd/boards/neokey_trinkey_m0/mpconfigboard.mk renamed to ports/atmel-samd/boards/adafruit_neokey_trinkey_m0/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
USB_VID = 0x239A
2-
USB_PID = 0x80FF
2+
USB_PID = 0x8100
33
USB_PRODUCT = "NeoKey Trinkey M0"
44
USB_MANUFACTURER = "Adafruit Industries LLC"
55

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#define MICROPY_HW_BOARD_NAME "Adafruit ProxSense Trinkey M0"
2+
#define MICROPY_HW_MCU_NAME "samd21e18"
3+
4+
#define MICROPY_HW_NEOPIXEL (&pin_PA15)
5+
6+
#define MICROPY_PORT_A (0)
7+
#define MICROPY_PORT_B (0)
8+
#define MICROPY_PORT_C (0)
9+
10+
#define IGNORE_PIN_PA01 1
11+
#define IGNORE_PIN_PA02 1
12+
#define IGNORE_PIN_PA04 1
13+
#define IGNORE_PIN_PA05 1
14+
#define IGNORE_PIN_PA06 1
15+
#define IGNORE_PIN_PA08 1
16+
#define IGNORE_PIN_PA09 1
17+
#define IGNORE_PIN_PA10 1
18+
#define IGNORE_PIN_PA11 1
19+
#define IGNORE_PIN_PA12 1
20+
#define IGNORE_PIN_PA13 1
21+
#define IGNORE_PIN_PA14 1
22+
#define IGNORE_PIN_PA18 1
23+
#define IGNORE_PIN_PA19 1
24+
#define IGNORE_PIN_PA20 1
25+
#define IGNORE_PIN_PA21 1
26+
// USB is always used internally so skip the pin objects for it.
27+
#define IGNORE_PIN_PA24 1
28+
#define IGNORE_PIN_PA25 1
29+
#define IGNORE_PIN_PA27 1
30+
#define IGNORE_PIN_PA28 1
31+
#define IGNORE_PIN_PA29 1
32+
#define IGNORE_PIN_PA30 1
33+
#define IGNORE_PIN_PA31 1
34+
#define IGNORE_PIN_PB00 1
35+
#define IGNORE_PIN_PB01 1
36+
#define IGNORE_PIN_PB02 1
37+
#define IGNORE_PIN_PB03 1
38+
#define IGNORE_PIN_PB04 1
39+
#define IGNORE_PIN_PB05 1
40+
#define IGNORE_PIN_PB06 1
41+
#define IGNORE_PIN_PB07 1
42+
#define IGNORE_PIN_PB08 1
43+
#define IGNORE_PIN_PB09 1
44+
#define IGNORE_PIN_PB10 1
45+
#define IGNORE_PIN_PB11 1
46+
#define IGNORE_PIN_PB12 1
47+
#define IGNORE_PIN_PB13 1
48+
#define IGNORE_PIN_PB14 1
49+
#define IGNORE_PIN_PB15 1
50+
#define IGNORE_PIN_PB16 1
51+
#define IGNORE_PIN_PB17 1
52+
#define IGNORE_PIN_PB22 1
53+
#define IGNORE_PIN_PB23 1
54+
#define IGNORE_PIN_PB30 1
55+
#define IGNORE_PIN_PB31 1
56+
57+
#define DEFAULT_I2C_BUS_SCL (&pin_PA17)
58+
#define DEFAULT_I2C_BUS_SDA (&pin_PA16)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
USB_VID = 0x239A
2+
USB_PID = 0x8104
3+
USB_PRODUCT = "ProxSense Trinkey M0"
4+
USB_MANUFACTURER = "Adafruit Industries LLC"
5+
6+
CHIP_VARIANT = SAMD21E18A
7+
CHIP_FAMILY = samd21
8+
9+
INTERNAL_FLASH_FILESYSTEM = 1
10+
LONGINT_IMPL = NONE
11+
12+
CIRCUITPY_ANALOGIO = 0
13+
CIRCUITPY_ROTARYIO = 0
14+
CIRCUITPY_RTC = 0
15+
CIRCUITPY_SAMD = 0
16+
CIRCUITPY_PS2IO = 0
17+
CIRCUITPY_PULSEIO = 0
18+
CIRCUITPY_PWMIO = 0
19+
CIRCUITPY_AUDIOCORE = 0
20+
CIRCUITPY_BUSIO = 1
21+
CIRCUITPY_STORAGE = 0
22+
23+
CIRCUITPY_MATH = 1
24+
CIRCUITPY_PIXELBUF = 1
25+
CIRCUITPY_USB_MIDI = 1
26+
CIRCUITPY_TOUCHIO = 1
27+
CIRCUITPY_FULL_BUILD = 0
28+
29+
SUPEROPT_GC = 0
30+
SUPEROPT_VM = 0
31+
32+
# Include these Python libraries in firmware.
33+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
34+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID

0 commit comments

Comments
 (0)