#include <pic18.h>
#include <18f2550.h>
#pragma config FOSC = INTOSCIO_EC
#pragma config WDT = OFF
void delay (unsigned int interval){
unsigned int i;
for ( i=0; i!=interval; i++ );
}
void main(){
char dir;
TRISB = 0;
PORTB = 0;
while(1)
{
RB4 = 0;
RB7 = 1;
delay(2000);
RB7 = 0;
RB6 = 1;
delay(2000);
RB6 = 0;
RB5 = 1;
delay(2000);
RB5 = 0;
RB4 = 1;
delay(2000);
}
}
#pragma config FOSC = INTOSCIO_EC
#pragma config WDT = OFF
#pragma config LVP = OFF
#pragma config BOR = ON
#pragma cinfig PWRT = ON
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?