Question 1 for Embed Lab

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
t00214916
Date:
Sat Aug 21 22:33:05 2021 +0000
Parent:
1:780300dcee8d
Commit message:
InterruptIn (FINAL_COMMIT)

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Aug 21 09:14:59 2021 +0000
+++ b/main.cpp	Sat Aug 21 22:33:05 2021 +0000
@@ -1,5 +1,8 @@
  // My first program did not have an interrupt and as a result sometime it would
  // display the button twice. this was resolved by the use on an interrupt.
+ //     A hardware option to control debouncing would be the use of a capacitor
+ // this will allow for a smooth switch. For a software solution an interrupt is
+ // used for debouncing.
  
  #include "mbed.h"
 Serial pc (USBTX, USBRX);