You are on page 1of 1

#include <mega32.

h>
#include <delay.h>
void main(void)
{
char urutan [8]={0x81, 0x42, 0x24, 0x18, 0x24, 0x42, 0x81};
char i;
DDRA =0xFF;
PORTA =0x00;
while (1)
{
for (i=0;i<7;i++)
{
PORTA = urutan [i];
delay_ms(100);
}
}
}

You might also like