Here is my source code:
#include <avr/io.h>
#include <util/delay.h>
#include <uart.h>
#include <rprintf.h>
void display(int d1, int d2, int d3, int d4);
int main()
{
uartInit(); // initialize UART
uartSetBaudRate(38400);// set UART baud rate
rprintfInit(uartSendByte);// initialize rprintf system
for(int a = 0; a < 6; a++)
{
display(a, a+1, a+2, a+3);
_delay_ms(1000);
}
}
void display(int d1, int d2, int d3, int d4)
{
rprintf("%d%d%d%d",d1,d2,d3,d4);
}
Thanks for the help