adafruit / RadioHead

A github'ified version of http://www.airspayce.com/mikem/arduino/RadioHead/
Other
186 stars 115 forks source link

ask_transmitter example compilation failed on ATTiny 85 (Digispark) #46

Open krmal opened 4 years ago

krmal commented 4 years ago

Compiling the example "as-is", I only commented line 13: RH_ASK driver; and uncommented line 15: RH_ASK driver(2000, 3, 4, 0); // ATTiny, RX on D3 (pin 2 on attiny85) TX on D4 (pin 3 on attiny85),.

I got a multitude of errors of the following kind:

_In file included from C:\Users\s150942\Documents\Arduino\libraries\RadioHead/RHEncryptedDriver.h:15:0, from C:\Users\s150942\Documents\Arduino\libraries\RadioHead\RHEncryptedDriver.cpp:7:

C:\Users\s150942\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:87:23: error: 'uint8_t' has not been declared

 virtual bool recv(uint8_t* buf, uint8_t* len) = 0;

                   ^

C:\Users\s150942\Documents\Arduino\libraries\RadioHead/RHGenericDriver.h:87:37: error: 'uint8_t' has not been declared

 virtual bool recv(uint8_t* buf, uint8_t* len) = 0;_

and many more erros that uint8_t is not defined.

Is there anything I should do before compilation? Is ATTiny85 otherwise supported?