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
This commit is contained in:
Benjamin Shockley 2018-09-12 07:59:07 -05:00 committed by GitHub
parent 2138b04e45
commit b923324e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -1,9 +1,12 @@
// LEDs
//#define MICROPY_HW_LED_MSC PIN_PA15 // red
// Board Name / MCU Type
#define MICROPY_HW_BOARD_NAME "Mini Sam M0"
#define MICROPY_HW_MCU_NAME "samd21e18"
// LED
#define MICROPY_HW_NEOPIXEL (&pin_PA27)
//#define MICROPY_HW_LED_MSC PIN_PA15 // red
// Do not reset these pins.
#define MICROPY_PORT_A (PORT_PA24 | PORT_PA25)
#define MICROPY_PORT_B (0)
#define MICROPY_PORT_C (0)
@ -14,6 +17,8 @@
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
#define BOARD_HAS_CRYSTAL 1
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)