The 3rd of 5 simple mbed demonstration projects. Provides the same functionality as my analogRead project, but uses = and float operator overloads to make code more transparent.
Diff: main.cpp
- Revision:
- 3:a894a7073cd9
- Parent:
- 2:7448a1637704
--- a/main.cpp Wed Mar 29 02:49:48 2017 +0000 +++ b/main.cpp Fri Mar 31 00:01:36 2017 +0000 @@ -37,4 +37,4 @@ printf("LED = %d\n", (int) led); // Send LED state as serial text. wait(0.25); // 250 ms } -} +} \ No newline at end of file