Thanks for the tutorial. I’m trying to do this right now with a PIC18F2620. I made sure to include the proper header files and such but when I go to build it says TRISDbits and LATDbits are not defined. Can you advise has to how I can fix this?