John Curran
/
mbed_Lab3_Digital_sensorsandequations_in_C_JohnCurranT00214119
Lab 3ES_ John Curran T00214119
Diff: main.cpp
- Revision:
- 8:6e8a4fe65820
- Parent:
- 7:5bb36caad016
--- 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);