Some AVR code to save other people's time.