From ea8535ffc86504426f1ef173ff77d60822567674 Mon Sep 17 00:00:00 2001 From: Felix Rusu Date: Tue, 20 Jul 2021 13:55:11 -0400 Subject: [PATCH] use LED_BUILTIN --- RFM69_OTA.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/RFM69_OTA.h b/RFM69_OTA.h index 6310030..938504c 100644 --- a/RFM69_OTA.h +++ b/RFM69_OTA.h @@ -37,14 +37,10 @@ #include "RFM69.h" #include -#if defined(MOTEINO_M0) - #define LED 13 // Moteino M0 -#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 +#if defined(LED_BUILTIN) + #define LED LED_BUILTIN #else - #define LED 13 // catch all others (UNO, pro mini etc) + #define LED 13 // catch all #endif #define SHIFTCHANNEL 1000000 //amount to shift frequency of HEX transmission to keep original channel free of the HEX transmission traffic