Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
At its crudest, you could start with
#include <8051.h>
void main()
{
while (1) // do forever
{
P2_0 = P1_0;// copy switch input to output
}
}
This will just copy the current switch state to the output and takes no account of switch bouncing.
You'll have to imagine the indenting!