random AVR code for driving a few different devices