#include "ecen.h"
void setup() {
// put your setup code here, to run once:
init_port();//initialise the port data and direction register
}
void loop() {
// put your main code here, to run repeatedly:
char x;
volatile long i;//if volatile not used compiler will optimize and delay loop wont run
x=1;
//turn on all led's sequentially
while(x)
{
output(x);
for(i=0;i<100000;i++);//loop for delay
x=x<<1;
}
}