Tom2
Full Member level 5
I use a pic microcontroller and i want to have two LED at pin B0 and pin B1.The first led will turn on when the input signal is more than zero and the second when the input is zero.I test this code to pic on a breadbord but the signal is zero both of the led are on
if (input(PIN_A0>0));
{ delay_ms(10);
output_high(PIN_B0);}
if (input(PIN_A0<0));
{ delay_ms(10);
output_high(PIN_B1);}
if (input(PIN_A0>0));
{ delay_ms(10);
output_high(PIN_B0);}
if (input(PIN_A0<0));
{ delay_ms(10);
output_high(PIN_B1);}