De hoofdcontroller van het TLS2 project.

Dependencies:   RPCInterface mbed

Files at this revision

API Documentation at this revision

Comitter:
RichardHoekstra
Date:
Tue Nov 08 18:47:10 2016 +0000
Child:
1:f36fa4e37849
Commit message:
First update

Changed in this revision

RPCInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RPCInterface.lib	Tue Nov 08 18:47:10 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/MichaelW/code/RPCInterface/#9d82e28ffaea
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Nov 08 18:47:10 2016 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "SerialRPCInterface.h"
+ 
+ 
+ 
+//Mbed <-> LabView protocol werkt over USB
+//Zie: https://developer.mbed.org/cookbook/Interfacing-with-LabVIEW
+//We gaan vooral gebruik maken van het RPC voorbeeld. Wordt super tof
+//Zie: https://developer.mbed.org/cookbook/Interfacing-Using-RPC voor RPC    
+
+PwmOut led(LED1);
+float ledDutyCycle = 0;
+RPCVariable<float> RPCMotorOut(&ledDutyCycle, "ledDutyCycle");
+
+//DIT IS EEN DEMO
+int main()
+{
+    led.period_ms(1);//1000Hz
+    while(true){
+        led = ledDutyCycle;
+        wait_ms(10);
+    }   
+}
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Nov 08 18:47:10 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0
\ No newline at end of file