#include <mega16.h>
#include <delay.h>
#include <math.h>
// Declare your global variables here
void main(void)
{
unsigned char seven[8]={0b10100000,0b10000011,0b10000110,0b11110111,0b10001011,0b10000110,0b11001110,0b10000110};
unsigned int n=0;
unsigned int a;
unsigned int b=0;
DDRC=0xFF;
DDRD=0xFF;
while (1)
{
atas:
do {
a=pow(2,b);
PORTD=a;
PORTC=seven[n];
delay_ms(100);
b=b+1;
n=n+1;
if(a>127){
//create by abe_here
a=0;
n=0;
b=0;
goto atas;};}
while(a<=128);
};
}
file proteus nya menggunkana program apa?kenapa di program proteus saya gak dapat dibuka file nya?
ReplyDelete