use LED_BUILTIN

This commit is contained in:
Felix Rusu 2021-07-20 13:55:11 -04:00
parent 6e79cc7bde
commit ea8535ffc8
1 changed files with 3 additions and 7 deletions

View File

@ -37,14 +37,10 @@
#include "RFM69.h" #include "RFM69.h"
#include <SPIFlash.h> #include <SPIFlash.h>
#if defined(MOTEINO_M0) #if defined(LED_BUILTIN)
#define LED 13 // Moteino M0 #define LED LED_BUILTIN
#elif defined(__AVR_ATmega1284P__)
#define LED 15 // Moteino MEGAs have LEDs on D15
#elif defined (__AVR_ATmega328P__)
#define LED 9 // Moteinos have LEDs on D9
#else #else
#define LED 13 // catch all others (UNO, pro mini etc) #define LED 13 // catch all
#endif #endif
#define SHIFTCHANNEL 1000000 //amount to shift frequency of HEX transmission to keep original channel free of the HEX transmission traffic #define SHIFTCHANNEL 1000000 //amount to shift frequency of HEX transmission to keep original channel free of the HEX transmission traffic