Skip to content

Commit

Permalink
fixed gemma and trinket m0 support - tested all pins on both boards w…
Browse files Browse the repository at this point in the history
…/NeoPixels (#510)
  • Loading branch information
ladyada authored and focalintent committed Oct 4, 2017
1 parent ddf3e9e commit af2beed
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions platforms/arm/d21/fastpin_arm_d21.h
Expand Up @@ -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

Expand Down

0 comments on commit af2beed

Please sign in to comment.