Hello
I'm having some problems with flashing my ATtiny84A-Pu.
I'm using the Arduino as a Programmer (Arduino as ISP).
This is the code I want to upload to the Tiny:
#include <SPI85.h>
#include <Mirf.h>
#include <MirfHardwareSpi85Driver.h>
#include <nRF24L01.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// This USI was defined in SPI85.cpp
// Not to be confused with SPI (MOSI/MISO) used by ICSP pins
// Refer to page 61 of attiny84 datahseet
// USI pins could be redefined here
//#define USI-DO 5
//#define USI-DI 4
//#define USCK 6
#define ONE_WIRE_BUS 9
#define CE 7
#define CSN 3
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors2(&oneWire);
void setup() {
// Start the temperaturesensor
sensors2.begin();
/* * Set the SPI Driver. */
Mirf.spi = &MirfHardwareSpi85;
/* * Setup pins / SPI. */
Mirf.cePin = CE;
Mirf.csnPin = CSN;
Mirf.init();
/* * Configure reciving address. */
Mirf.setRADDR((byte *)"serv1");
/* * Set the payload length to sizeof(unsigned long) the * return type of millis(). * * NB: payload on client and server must be the same. */
Mirf.payload = sizeof(unsigned long);
/* * Write channel and payload config then power up reciver. */
Mirf.config();
}
void loop() {
sensors2.requestTemperaturesByIndex(0);
sensors2.getTempCByIndex(0);
float tempout = sensors2.getTempCByIndex(0);
/* * Set the send address. */
Mirf.setTADDR((byte *)"clie1");
/* * Send the data back to the client. */
Mirf.send((byte *) &tempout);
/* * Wait untill sending has finished * * NB: isSending returns the chip to receving after returning true. */
delay (10000);
}
And that's the ERROR-Message I get:
In file included from C:\Users\Alexia\Documents\Arduino\libraries\Mirf\MirfSpiDriver.cpp:1:0:
C:\Users\Alexia\Documents\Arduino\libraries\Mirf\MirfSpiDriver.h:6:11: error: 'uint8_t' does not name a type
virtual uint8_t transfer(uint8_t data);
^
C:\Users\Alexia\Documents\Arduino\libraries\Mirf\MirfSpiDriver.cpp:3:1: error: 'uint8_t' does not name a type
uint8_t MirfSpiDriver::transfer(uint8_t data){
^
exit status 1
Error compiling for board ATtiny24/44/84.
I don't understand what that ERROR-Message is trying to tell me.
Can anyone tell me what i need to change in the programm or in the Installation stuff?
Thank you
techniclover