Example using the Seeed Grove slider
Dependencies: mbed
Revision 1:401629079a98, committed 2014-08-15
- Comitter:
- sam_grove
- Date:
- Fri Aug 15 15:51:55 2014 +0000
- Parent:
- 0:46e460c85e27
- Commit message:
- Add LED to the example. Making it more comprehensive
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 46e460c85e27 -r 401629079a98 main.cpp --- a/main.cpp Fri Aug 15 15:46:07 2014 +0000 +++ b/main.cpp Fri Aug 15 15:51:55 2014 +0000 @@ -2,6 +2,7 @@ #include "mbed.h" AnalogIn pot(A0); +DigitalOut led(A1); int main (void) { @@ -11,5 +12,6 @@ value = pot; printf("Slide location %3.2f\n", value); wait(0.5f); + led = !led; } }