add custom init code for neopixel power pin to default on
This commit is contained in:
parent
bdd8ee911b
commit
4a5f9f7aae
2 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue