From 4e865e9bf85a948a4235227e804316391ae504e9 Mon Sep 17 00:00:00 2001 From: brandock Date: Sat, 20 May 2023 19:02:23 -0500 Subject: [PATCH] Update RF12.cpp Update the pins for ATtiny84 to match the corrected pins in RF69_avr.h. Harmonizing the two makes sense. The scheme that has been in RF69_avr.h is the more modern, clockwise mapping in which MISO (PA6) is numbered 6, and SCK (PA4) is numbered 4. --- RF12.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RF12.cpp b/RF12.cpp index add7bc5f..412452c3 100644 --- a/RF12.cpp +++ b/RF12.cpp @@ -82,9 +82,9 @@ #define SS_BIT 1 #define SPI_SS 1 // PB1, pin 3 -#define SPI_MISO 4 // PA6, pin 7 +#define SPI_MISO 6 // PA6, pin 7 #define SPI_MOSI 5 // PA5, pin 8 -#define SPI_SCK 6 // PA4, pin 9 +#define SPI_SCK 4 // PA4, pin 9 #elif defined(__AVR_ATmega32U4__) //Arduino Leonardo