UvA NetCentric Computing listener

Dependencies:   AndroidAccessory Controls HBridge MotorController mbed

Fork of uva_nc by Jurgen Baas

Files at this revision

API Documentation at this revision

Comitter:
Sinterbaas
Date:
Sun Jan 10 23:48:29 2016 +0000
Parent:
6:b5072fb695f2
Commit message:
Remove the ghetto

Changed in this revision

NetCentricApp.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b5072fb695f2 -r d9d30a2d8d9f NetCentricApp.cpp
--- a/NetCentricApp.cpp	Sun Jan 10 23:46:34 2016 +0000
+++ b/NetCentricApp.cpp	Sun Jan 10 23:48:29 2016 +0000
@@ -4,8 +4,6 @@
 #include "MotorController.h"
 #include "PcControls.h"
 
-// in the getto
-
 DigitalOut myled1(LED1);
 DigitalOut myled2(LED2);
 DigitalOut myled3(LED3);
@@ -21,6 +19,9 @@
     return bits;
 }
 
+/**
+ * Set the 4 LEDS on the mBed to the first 4 bits of the integer
+ */
 void setLeds (int number) {
     DigitalOut leds [] = {myled1, myled2, myled3, myled4};
     
@@ -30,7 +31,6 @@
         leds[i] = bits[i];
     }
 }
-// end in the getto
 
 // Process commands here.
 MbedResponse *NetCentricApp::getResponse(MbedRequest *request) {