#include void main() { TRISD = 0; PORTD = 0b00000000; while(1) { PORTD++; if(PORTD == 16) { PORTD = 0; } for(int i = 0 ; i < 30000 ; i++); } }