Difference: Switches (5 vs. 6)

Revision 62021-06-09 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Exercise 3: Switches

Introduction

Line: 17 to 17
 pir.png

Exercise 1:

Changed:
<
<
The push button switch is connected to GPIO 17 on the ESP32 board.
>
>
The push button switch is connected to GPIO 22 on the ESP32 board.
  Write a script that polls the state of the switch every 100 ms and prints state changes (only print out a message when the switch state has changed). Catch <ctrl> C to smoothly exit the program.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback