#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==0)
{
for(i=0;i<600000;i++);
if(j==0)
{
x=0b00111111;//to display zero without decimal point
output(x);
}
if(j==2)
{
x=0b01011011;//to display two without decimal point
output(x);
}
if(j==4)
{
x=0b01100110;//to display four without decimal point
output(x);
}
if(j==6)
{
x=0b01111101;//to display six without decimal point
output(x);
}
if(j==8)
{
x=0b01111111;//to display eight without decimal point
output(x);
}
}
}
}
//x=0b00111111;//to display zero without decimal point
//x=0b00000110;//to display one without decimal point
//x=0b01011011;//to display two without decimal point
//x=0b01001111;//to display three without decimal point
//x=0b01100110;//to display four without decimal point
//x=0b01101101;//to display five without decimal point
//x=0b01111101;//to display six without decimal point
//x=0b00000111;//to display seven without decimal point
//x=0b01111111;//to display eight without decimal point
//x=0b01101111;//to display nine without decimal point