Traditional Culture Encyclopedia - Traditional stories - Ask god to give a switch to control the program of led lights on and off.
Ask god to give a switch to control the program of led lights on and off.
# include & ltreg52.h & gt
sbit SW 1 = p3^5;
sbit led = p3^2;
Invalid delay ()
{
Unsigned integer x, y= 100.
for(x = 5; y & gt0; y-);
}
Hollow surface ()
{
if(sw 1==0)
{
delay();
if(sw 1==0)
led=! led
}
}
- Related articles
- How is the development momentum of "Telematics"?
- How does bingtuan develop leisure agriculture and rural tourism?
- What are the traditional skills in Xinjiang?
- What is the basic etiquette of Chinese food?
- What is the construction technology of exterior wall rock flake paint?
- Sauce sausage noodle soup.
- What festivals do Koreans have?
- What imagination and changes can the live broadcast of Olympic Games +X bring?
- Speech on caring for left-behind children in primary schools
- Ask for all the albums of Black Duck.