add custom init code for neopixel power pin to default on

This commit is contained in:
lady ada 2020-09-22 22:48:50 -04:00
parent bdd8ee911b
commit 4a5f9f7aae
2 changed files with 9 additions and 1 deletions

View file

@ -17,7 +17,7 @@
*/
#include "variant.h"
#include "Arduino.h"
/*
* Pins descriptions
*/
@ -77,3 +77,10 @@ void SERCOM0_Handler()
Serial1.IrqHandler();
}
void initVariant(void) {
// special initialization code just for us
// turn on neopixel
pinMode(12, OUTPUT);
digitalWrite(12, HIGH);
}

View file

@ -80,6 +80,7 @@ extern "C"
#define PIN_LED_13 (13u)
#define PIN_LED PIN_LED_13
#define LED_BUILTIN PIN_LED_13
#define PIN_NEOPIXEL (11u)
/*
* Analog pins