AtTiny library does not work

Hey, I tried to use the atTiny lib from high-low tech. When I tried to compile the blink sketch (yes I changed the pin to 3) I got declaration errors. WHY?

Blink.cpp:10:21: error: Arduino.h: No such file or directory
Blink.cpp: In function 'void setup()':
Blink:14: error: 'OUTPUT' was not declared in this scope
Blink:14: error: 'pinMode' was not declared in this scope
Blink.cpp: In function 'void loop()':
Blink:19: error: 'HIGH' was not declared in this scope
Blink:19: error: 'digitalWrite' was not declared in this scope
Blink:20: error: 'delay' was not declared in this scope
Blink:21: error: 'LOW' was not declared in this scope

How could I have possibly messed up anything? It's just not possible :frowning: I just hate the arduino IDE for throwing errors at me at random.

Double posts really don't help.

What Arduino version are you using?

kf2qd:
Double posts really don't help.

Ikr. The first time my post didn't show up because of a big fat proxy error message.

I'm using the latest version with the latest release of the attiny library.

keoni29:
I'm using the latest version with the latest release of the attiny library.

OK but what version of the Arduino IDE are you using?

keoni29:

kf2qd:
Double posts really don't help.

Ikr. The first time my post didn't show up because of a big fat proxy error message.

I'm using the latest version with the latest release of the attiny library.

Try the core available here...
http://code.google.com/p/arduino-tiny/

This is the latest version...
http://arduino-tiny.googlecode.com/files/arduino-tiny-0100-0014.zip

The readme.txt file has installation instructions.

But I have an AtTiny45 :frowning:

Why do you mention that?

Because the readme said it was for 85 :stuck_out_tongue:
Edit: Never mind. In the IDE it shows up :slight_smile: I don't use an external clock source, so do I need to select the 1Mhz for the internal clock??

...and the "45"...

Specifically, our goal is to provide a core that enables Arduino users to work with the ATtiny 84 (44/24), ATtiny 85 (45/25), and ATtiny 2313 processors.

:stuck_out_tongue: :stuck_out_tongue:

Just edited my post :slight_smile: Okay. Now gonna try and compile something :stuck_out_tongue:

keoni29:
I don't use an external clock source, so do I need to select the 1Mhz for the internal clock??

That is an excellent choice to get you started.

Okay everything works fine now. The version on high-low tech group's page was probably just outdated and not suited for use with the latest version of the arduino IDE.

Got the same problem and solved by downloading fresh library. Thanks