Skip to content

Commit b923324

Browse files
authored
Added HW NEOPIXEL Definition
Added definition for the built-in Neopixel. This is useful for CircuitPython Statas: https://learn.adafruit.com/welcome-to-circuitpython/troubleshooting#circuitpython-rgb-status-light-18-10
1 parent 2138b04 commit b923324

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ports/atmel-samd/boards/mini_sam_m0/mpconfigboard.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
// LEDs
2-
//#define MICROPY_HW_LED_MSC PIN_PA15 // red
3-
1+
// Board Name / MCU Type
42
#define MICROPY_HW_BOARD_NAME "Mini Sam M0"
53
#define MICROPY_HW_MCU_NAME "samd21e18"
64

5+
// LED
6+
#define MICROPY_HW_NEOPIXEL (&pin_PA27)
7+
//#define MICROPY_HW_LED_MSC PIN_PA15 // red
8+
9+
// Do not reset these pins.
710
#define MICROPY_PORT_A (PORT_PA24 | PORT_PA25)
811
#define MICROPY_PORT_B (0)
912
#define MICROPY_PORT_C (0)
@@ -14,6 +17,8 @@
1417

1518
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
1619

20+
#define BOARD_HAS_CRYSTAL 1
21+
1722
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
1823
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)
1924

0 commit comments

Comments
 (0)