some handy code bits

See also the AVR pages for AVR code