Permalink
Browse files

fixed gemma and trinket m0 support - tested all pins on both boards w…

…/NeoPixels (#510)
  • Loading branch information...
ladyada authored and focalintent committed Oct 4, 2017
1 parent ddf3e9e commit af2beed1f1a0027b6765852c6850de44262634a1
Showing with 13 additions and 2 deletions.
  1. +13 −2 platforms/arm/d21/fastpin_arm_d21.h
@@ -137,9 +137,20 @@ _DEFPIN_ARM( 20, 0, 6); _DEFPIN_ARM( 21, 0, 7);
#elif defined(ARDUINO_GEMMA_M0)
#define MAX_PIN 3
_DEFPIN_ARM( 0, 0, 8); _DEFPIN_ARM( 1, 0, 2); _DEFPIN_ARM( 2, 0, 9);
_DEFPIN_ARM( 0, 0, 4); _DEFPIN_ARM( 1, 0, 2); _DEFPIN_ARM( 2, 0, 5);
#define HAS_HARDWARE_PIN_SUPPORT 0
#define HAS_HARDWARE_PIN_SUPPORT 1
#elif defined(ADAFRUIT_TRINKET_M0)
#define MAX_PIN 5
_DEFPIN_ARM( 0, 0, 8); _DEFPIN_ARM( 1, 0, 2); _DEFPIN_ARM( 2, 0, 9);
_DEFPIN_ARM( 3, 0, 7); _DEFPIN_ARM( 4, 0, 6);
#define SPI_DATA 4
#define SPI_CLOCK 3
#define HAS_HARDWARE_PIN_SUPPORT 1
#endif

0 comments on commit af2beed

Please sign in to comment.