Hi all
This is program that takes input from user and than print on screen
Now If I want to do same thing in embedded c programming.
when user press button1, 1 is stored
when user press button2, 2 is stored
suppose I want to write embedded c program that take inputs from user (buttons) and than display on LCD screen.( 8051, LCD 16*2 button1 and button 2)
I am not asking for all program. I am just asking for below condition
how do we write embedded c program that take data from user input ?
how do we write embedded c program that display user input ?
Note: I have already asked in many time regarding calculator. but I am not asking here for calculator programming so please don't compare this thread with my other thread. here I am asking different information.
This is program that takes input from user and than print on screen
C:
#include <stdio.h>
int main ()
{
int a, b;
/* get first number from user */
printf("Enter your first number:");
scanf("%d", &a);
/* get second number from user */
printf("Enter your second number:");
scanf("%d", &b);
return 0;
}
when user press button1, 1 is stored
when user press button2, 2 is stored
suppose I want to write embedded c program that take inputs from user (buttons) and than display on LCD screen.( 8051, LCD 16*2 button1 and button 2)
I am not asking for all program. I am just asking for below condition
how do we write embedded c program that take data from user input ?
how do we write embedded c program that display user input ?
Note: I have already asked in many time regarding calculator. but I am not asking here for calculator programming so please don't compare this thread with my other thread. here I am asking different information.