library code for ATmega64