Mert Us / Mbed 2 deprecated lab1_part2

Dependencies:   PinDetect mbed

Files at this revision

API Documentation at this revision

Comitter:
mus3
Date:
Thu Sep 08 07:32:51 2022 +0000
Parent:
9:e5c16d5c49d7
Commit message:
lab1 part2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Sep 06 15:33:41 2022 +0000
+++ b/main.cpp	Thu Sep 08 07:32:51 2022 +0000
@@ -25,7 +25,6 @@
     pbbright.attach_deasserted(&pbbright_hit_callback);
     pbbright.setSampleFrequency();
     while(1) {
-        red = !pblight;
         led = brightness;
         wait(.2);
     }