killer_007
New Member
i want to make a circuit to make a led turn on when i push the push button
by using these code
void main()
{
TRISA=0B00011111;
TRISB=0;
loop:
if (PORTA.F0==0) { PORTB.F0=1; }
else {PORTB.F0=0; }
goto loop;
}
by using these code
void main()
{
TRISA=0B00011111;
TRISB=0;
loop:
if (PORTA.F0==0) { PORTB.F0=1; }
else {PORTB.F0=0; }
goto loop;
}