
Mas estou apanhando um pouco, porem ela não esta funcionado corretamente só fica piscando o LED 1 da minha plaquinha. se algum puder me ajudar agradeço. Abraços
- Código: Selecionar todos
void main ()
{
while(1)
{
if ( !input(pin_a4) )
for(;;)
output_high(pin_A0); // LIGA LED1
delay_ms (2000); // ESPERA 2 SEGUNDOS
output_high(pin_A1); // LIGA LED2
output_low(pin_A0); // DESLIGA LED1
if ( !input(pin_a6) )
output_high(Pin_A2); //LIGA LED3
output_low(Pin_A1); //DESLIGA LED2
delay_ms (2000); //ESPERA 2 SEGUNDOS
output_low(Pin_A2); //DESLIGA LED3
}
}