The HIGH and LOW commands automatically set the respective pins to outputs....but the few input statement still won't work....
Also, PIR is a named register on PICs. You might not want to use that name for a variable. Might mess you up in the future. Same with RESET (could be confused with the MCLR function somewhere sometime) and ACC (some might confuse that with Accumulator).
Bookmarks