Library for abstracting various microcontroller platforms and peripheral devices