Code of A Programming
Code of A Programming
h"
int counter = 0;
int main(void)
{
CyGlobalIntEnable; /* Enable global interrupts. */
LCD_Char_Start();
LCD_Char_Enable();
LCD_Char_ClearDisplay();
for(;;)
{
if(SW_Read() == 1)
{
CyDelay(500);
counter++;
}
if(counter == 1)
{
LCD_Char_Position(0u, 3u);
LCD_Char_PrintString("TEAM 5");
}
else if (counter == 2)
{
counter = 0;
LCD_Char_ClearDisplay();
}
}
}
/* [] END OF FILE */
CONCLUSION
say inside it has two contacts, when one is pressed, the inverse function of the one
Push buttons or switches, there are tons of them in your home. A switch is a simple
That we can highlight in the procedure that is followed to perform the code that
mechanical switch present in these cases when touching the plates this was the
delay that was put to the program was so that the program can avoid rebounding
this makes it through reading of the state the “deley“ gives the program time to