Some code for the PIC microcontroller