#include "hardware_dependent.h"
void setup() {
// put your setup code here, to run once:
init_port();
}
void loop() {
// put your main code here, to run repeatedly:
volatile char x;
volatile long i;
volatile char j;
for(j=0;j<10;j++)
{
if(j%2==1)
{
for(i=0;i<600000;i++);
if(j==1)
{
x=0b10000110;//to display one with decimal point
output(x);
}
if(j==3)
{
x=0b11001111;//to display three with decimal point
output(x);
}
if(j==5)
{
x=0b11101101;//to display five with decimal point
output(x);
}
if(j==7)
{
x=0b10000111;//to display seven with decimal point
output(x);
}
if(j==9)
{
x=0b11101111;//to display nine with decimal point
output(x);
}
}
}
}