File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 5050
5151#else
5252
53- #define SPI_SS 10 // PB2 = SPI_SS
54- #define SPI_MOSI 11 // PB3 = MOSI
55- #define SPI_MISO 12 // PB4 = MISO
56- #define SPI_SCK 13 // PB5 = SCK
57- #define GDO0 2 // PD2 = INT0
53+ #define SPI_SS CC1101_SPI_SS // PB2 = SPI_SS
54+ #define SPI_MOSI MOSI // PB3 = MOSI
55+ #define SPI_MISO MISO // PB4 = MISO
56+ #define SPI_SCK SCK // PB5 = SCK
57+ #define GDO0 CC1101_GDO0 // PD2 = INT0
5858
5959#define PORT_SPI_MISO PINB
6060#define BIT_SPI_MISO 4
Original file line number Diff line number Diff line change 3333
3434#include <avr/pgmspace.h>
3535
36+ // SPI CC1101 interface
37+ #define CC1101_SPI_SS 10 // PB2 = SPI_SS
38+ #define CC1101_GDO0 2 // PD2 = INT0
39+
3640#define NUM_DIGITAL_PINS 20
3741#define NUM_ANALOG_INPUTS 6
3842#define analogInputToDigitalPin (p ) ((p < 6) ? (p) + 14 : -1)
You can’t perform that action at this time.
0 commit comments