An I²C driver implementation for Microchip PIC24 microcontrollers