Hello,
first of all excuse me for my bad english
I know the basics of C but I don't have any experiences with microcontroller programming. So I really hope that someone can help me 
If we want to get the input from user we just use scanf statement to get the input from the keyboard
If I want to read the status of the switch How do we do in the programming

as you can see flow chart reading the state of the switch at once.
I want to understand which statement we use in embedded c programming to read the devices like sensors, switches?
I really need help! Hopefully, someone can help me!?
Much Thanks in advance!
first of all excuse me for my bad english
If we want to get the input from user we just use scanf statement to get the input from the keyboard
If I want to read the status of the switch How do we do in the programming

as you can see flow chart reading the state of the switch at once.
I want to understand which statement we use in embedded c programming to read the devices like sensors, switches?
I really need help! Hopefully, someone can help me!?
Much Thanks in advance!


