clean
This commit is contained in:
@@ -52,9 +52,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
printf("Button state: %d\n", digitalRead(BUTTON_PIN));
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (digitalRead(BUTTON_PIN) == LOW && !buttonPressed)
|
if (digitalRead(BUTTON_PIN) == LOW && !buttonPressed)
|
||||||
{
|
{
|
||||||
printf("Button pressed\n");
|
printf("Button pressed\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user