core13: An Arduino core for the Attiny13 *testers wanted*

swe-dude:
just found the problem...
this linewhile(digitalRead(pin) == stat){if((micros() - st) > timeout){return 0;}]
change to

while(digitalRead(pin) == stat){if((micros() - st) > timeout){return 0;}}

And its all good.

Any new functions or big changes from last version?

Somehow I uploaded a broken copy of that file. It's weird because
the current version compiled fine here. Anyway, it's fixed now.

Nothing too big. One of the fixes was actually that function (pulseIn)
Besides bug fixes, I worked on some on the ADC code a bit. The next release
should include boards.txt and platform.txt (or whatever it's called) and
hopefully some of the functions will be a few bytes smaller.