Initial version. Illuminates the LED when the user button is held down. Otherwise, the LED is off. Variation on 21_Button_v5.
Diff: main.cpp
- Revision:
- 111:2d91fe50a8cc
- Parent:
- 110:6360f8487c16
--- a/main.cpp Tue Oct 05 12:52:54 2021 +0000 +++ b/main.cpp Tue Oct 05 13:22:20 2021 +0000 @@ -1,11 +1,11 @@ /* -Project: 21_ButtonImproved_v5 +Project: 21_ButtonImproved_v5 (Button/LED Demo) File: main.cpp Turns LED1 on when USER_BUTTON is held down. Otherwise LED1 is off. Modified 12 Aug 2017 by Dr. Sheila Ross -Last revised 10/5/21 by Dr. C. S. Tritt +Last revised 10/5/21 by Dr. C. S. Tritt (v. 1.0) */ #include "mbed.h"