This source codes provide two small examples for an ATtiny tutorial that I have published at instructables: Honey, I Shrunk the Arduino: Moving from Arduino to ATtiny and writing your code in pure AVR-C.
This software is released under BSD 3-clause license which is contained in the file LICENSE
.