2020 * GNU General Public License for more details.
2121 *
2222 * You should have received a copy of the GNU General Public License
23- * along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
23+ * along with this program. If not, see <http://www.gnu.org/licenses/gpl.html>.
2424 *
2525 */
2626
5454#if defined(ESP8266 )
5555#define FEEDBACK_LED_IS_ACTIVE_LOW // The LED on my board (D4) is active LOW
5656#define IR_RECEIVE_PIN 14 // D5
57- #define IR_RECEIVE_PIN_STRING "D5"
5857#define IR_SEND_PIN 12 // D6 - D4/pin 2 is internal LED
59- #define IR_SEND_PIN_STRING "D6"
6058#define _IR_TIMING_TEST_PIN 13 // D7
6159#define APPLICATION_PIN 0 // D3
6260
@@ -89,15 +87,17 @@ void noTone(uint8_t _pin){
8987#elif defined(ARDUINO_ARCH_STM32 ) || defined(ARDUINO_ARCH_STM32F1 ) // BluePill
9088// Timer 3 blocks PA6, PA7, PB0, PB1 for use by Servo or tone()
9189#define IR_RECEIVE_PIN PA6
92- #define IR_RECEIVE_PIN_STRING "PA6"
9390#define IR_SEND_PIN PA7
94- #define IR_SEND_PIN_STRING "PA7"
9591#define TONE_PIN PA3
96- #define _IR_TIMING_TEST_PIN PA5
92+ #define _IR_TIMING_TEST_PIN PA5
9793#define APPLICATION_PIN PA2
94+ # if defined(ARDUINO_GENERIC_STM32F103C ) || defined(ARDUINO_BLUEPILL_F103C8 )
95+ // BluePill LED is active low
96+ #define FEEDBACK_LED_IS_ACTIVE_LOW
97+ # endif
9898
9999#elif defined(__AVR_ATtiny25__ ) || defined(__AVR_ATtiny45__ ) || defined(__AVR_ATtiny85__ ) // Digispark board
100- #include "ATtinySerialOut.hpp" // Available as Arduino library "ATtinySerialOut". saves 370 bytes program space and 38 bytes RAM for digistump core
100+ #include "ATtinySerialOut.hpp" // Available as Arduino library "ATtinySerialOut". saves 370 bytes program memory and 38 bytes RAM for digistump core
101101#define IR_RECEIVE_PIN 0
102102#define IR_SEND_PIN 4 // Pin 2 is serial output with ATtinySerialOut. Pin 1 is internal LED and Pin3 is USB+ with pullup on Digispark board.
103103#define TONE_PIN 3
@@ -119,7 +119,7 @@ void noTone(uint8_t _pin){
119119# endif
120120
121121#elif defined(__AVR_ATtiny88__ ) // MH-ET Tiny88 board
122- #include "ATtinySerialOut.hpp" // Available as Arduino library "ATtinySerialOut". Saves 128 bytes program space
122+ #include "ATtinySerialOut.hpp" // Available as Arduino library "ATtinySerialOut". Saves 128 bytes program memory
123123// Pin 6 is TX pin 7 is RX
124124#define IR_RECEIVE_PIN 3 // INT1
125125#define IR_SEND_PIN 4
0 commit comments