some common functions for all my AVR projects