m3pi for proj2

Dependencies:   RemoteIR m3pi mbed-rtos mbed

Revision:
7:1d77c7e0208c
Parent:
6:02f045d7695d
Child:
9:8c5229dfab82
diff -r 02f045d7695d -r 1d77c7e0208c LightCommunication.cpp
--- a/LightCommunication.cpp	Wed May 10 00:46:48 2017 +0200
+++ b/LightCommunication.cpp	Wed May 10 09:29:05 2017 +0200
@@ -4,14 +4,7 @@
 
 #include "LightCommunication.h"
 
-float LightCommunication::left = 0;
-float LightCommunication::right = 0;
-Serial LightCommunication::device(p14,p15);
-ReceiverIR LightCommunication::ir_rx(p21);
-Mutex LightCommunication::mut;
-
-
-LightCommunication::LightCommunication() {
+LightCommunication::LightCommunication() : ir_rx(p21), device(p14,p15) {
     left,right = 0;
 }