A general peripheral C library for AVR microcontrollers