Hay un par de cosas que veo que debes cambiar, errores, y algunas cosas que no les gusta a los compiladores.
#include <16F628A.h>
#FUSES NOWDT
#FUSES INTRC_IO
#FUSES NOPUT
#FUSES NOPROTECT
#FUSES NOBROWNOUT
#FUSES NOMCLR
#FUSES NOLVP
#FUSES NOCPD
#use delay(clock=4000000)
#define led1 PIN_A1
#define led2 PIN_A2
void main()
{
int i;
while (1)
{
for (i = 0;i < 3; i++ ){
output_high(led1);
output_high(led2);
delay_ms(1000);
output_low(led1);
output_low(led2);
delay_ms(700);
}
}
}
Proba asi, las cosas que cambie fueron:
- Cambie los output_bit por output_low/high sin ninguna razón.. pienso que es mas legible.
- el int i, lo saque afuera, a algunos compiladores no les gusta que se declaren dentro del for, por eso mismo lo saque afuera.
- había uno de los output_bit que le faltaba el punto y coma, uno de los últimos, se lo agregue
Lamentablemente no poseo tiempo disponible como para probarlo, asi que te lo dejo a vos a eso.