Commit 3f4a1cbc authored by TMRh20's avatar TMRh20

#24 Enable UART as 2ndary SPI BUS

Uses the SPI_UART library at https://github.com/TMRh20/Sketches
parent ccde03c9
...@@ -24,15 +24,20 @@ ...@@ -24,15 +24,20 @@
//#define FAILURE_HANDLING //#define FAILURE_HANDLING
//#define SERIAL_DEBUG //#define SERIAL_DEBUG
//#define MINIMAL //#define MINIMAL
#define SPI_UART
/**********************/ /**********************/
// Define _BV for non-Arduino platforms and for Arduino DUE // Define _BV for non-Arduino platforms and for Arduino DUE
#if defined (ARDUINO) && !defined (__arm__) #if defined (ARDUINO) && !defined (__arm__)
#if defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) #if defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
#define RF24_TINY #define RF24_TINY
#else
#if defined SPI_UART
#include <SPI_UART.h>
#else #else
#include <SPI.h> #include <SPI.h>
#endif #endif
#endif
#else #else
#include <stdint.h> #include <stdint.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment