help in nrf24 on ATTINY13

i have problem in compile attiny 13
thank you
here is sample code

#include <nRF24L01.h>
#include <RF24.h>

RF24 radio(8, 10); // CE, CSN
const byte addresses[][6] = {"00001", "00002", "00003"};

boolean buttonState = 0;
void setup() {


  radio.begin();
  radio.openWritingPipe(addresses[0]); // 00001
  radio.openReadingPipe(1, addresses[1]); // 00001 ,00003
  radio.setPALevel(RF24_PA_LOW);
}
void loop() {
  delay(5);
          radio.stopListening();
      const char text1[] = "Hello World";
      radio.write(&text1, sizeof(text1));
}

or

#include <nRF24L01.h>
#include <RF24.h>

void setup() {
}
void loop() {
}

got this error
Arduino: 1.8.4 (Windows 10), Board: “ATtiny13, 9.6 MHz internal osc., EEPROM retained, BOD 2.7V, Micros disabled”

Build options changed, rebuilding all
In file included from C:\Program Files (x86)\Arduino\libraries\RF24-master\RF24.cpp:10:0:

C:\Program Files (x86)\Arduino\libraries\RF24-master\RF24.cpp: In member function ‘void RF24::csn(bool)’:

C:\Program Files (x86)\Arduino\libraries\RF24-master\RF24_config.h:94:26: error: ‘SPI’ was not declared in this scope
and more error in compile

@saeidnorouzi, you sent me a PM about this. I have no experience with the Attiny13 and I don't read this Microcontrollers section of the Forum.

I have some nRF24s working with the Attiny84. IIRC it did not need any special treatment.

...R
Simple nRF24L01+ Tutorial

Can one really fit code to work with an NRF24 into just 1k of flash?! That seems like a lot to ask...

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.