John Curran
/
mbed_Lab3_Digital_sensorsandequations_in_C_JohnCurranT00214119
Revision 8:6e8a4fe65820, committed 2021-05-26
- Comitter:
- johnc89
- Date:
- Wed May 26 16:50:37 2021 +0000
- Parent:
- 7:5bb36caad016
- Commit message:
- Final Piece of code
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Apr 19 18:28:46 2021 +0000 +++ b/main.cpp Wed May 26 16:50:37 2021 +0000 @@ -17,7 +17,9 @@ // line 14-15 is sensor being tilted giving different readings #include "mbed.h" #include "MMA7660.h" - +DigitalOut redled(p23); // built in red led +DigitalOut greenled(p24); // built in blue led +DigitalOut blueled(p25); // built in blue led Serial pc(USBTX,USBRX);// serial communications MMA7660 MMA(p28, p27);