Keklja
Junior Member level 2
Hi
My project is to to push button and the number should be incrementing by one every time. lets say the number is 25. When I pus button it should be 26, push again it is 27. Now how to show that on virtual terminal? Only idea that I have is standard c something like:
if (button==1)
num++;
printf ("Number is now %d",num);
}
Problem is printf doesnt work and "serial_send" command doesnt support "Number is now %d",num this form.
Im using AT89C51RD2 micro controller
My project is to to push button and the number should be incrementing by one every time. lets say the number is 25. When I pus button it should be 26, push again it is 27. Now how to show that on virtual terminal? Only idea that I have is standard c something like:
if (button==1)
num++;
printf ("Number is now %d",num);
}
Problem is printf doesnt work and "serial_send" command doesnt support "Number is now %d",num this form.
Im using AT89C51RD2 micro controller