#include "ecen.h"
#define DELAY 1000
void setup() {
volatile char *dir_A=0x21 , *dir_B=0x24;
*dir_A = 0xff, *dir_B = 0xff;
}
void wait(){
volatile long k;
for(k=0;k<DELAY;k++);
}
void loop(){
volatile long k;
outB(0x80);
outA(0x01);
wait();
outA(0x00);
outB(0x81);
outA(0x08);
wait();
outA(0x00);
outB(0x01);
outA(0x40);
wait();
outA(0x00);
outB(0xfe);
outA(0x30);
wait();
outA(0x00);
outB(0x7f);
outA(0x06);
wait();
outA(0x00);
}