Bouke Scheltinga / Mbed 2 deprecated Werk_college_23sept

Dependencies:   Encoder HIDScope MODSERIAL mbed QEI biquadFilter

Files at this revision

API Documentation at this revision

Comitter:
bscheltinga
Date:
Wed Sep 23 08:40:48 2015 +0000
Child:
1:0a89274e1279
Commit message:
Motor 2 spinning default

Changed in this revision

Encoder.lib Show annotated file Show diff for this revision Revisions of this file
HIDScope.lib Show annotated file Show diff for this revision Revisions of this file
MODSERIAL.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/Encoder.lib	Wed Sep 23 08:40:48 2015 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/vsluiter/code/Encoder/#18b000b443af
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HIDScope.lib	Wed Sep 23 08:40:48 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/tomlankhorst/code/HIDScope/#5020a2c0934b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MODSERIAL.lib	Wed Sep 23 08:40:48 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Sissors/code/MODSERIAL/#8ef4f91813fd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Sep 23 08:40:48 2015 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "HIDScope.h"
+#include "encoder.h"
+#include "MODSERIAL.h"
+
+//Motor 2
+DigitalOut motor2direction(D4); //D4 en D5 zijn motor 2 (op het motorshield)
+PwmOut motor2speed(D5);
+DigitalIn button(PTA4);
+
+int main()
+{
+    while(true) {
+        if (button.read() == 0) {
+            motor2direction = 1;
+            motor2speed = 0.55f;
+            motor2speed = 0.3f;
+        } else {
+            motor2direction = 0;
+            motor2speed = 0.3f;
+        }
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Sep 23 08:40:48 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file