asdf

Dependencies:   mbed LSM9DS1_Library SparkfunAnalogJoystick RPCInterface

Files at this revision

API Documentation at this revision

Comitter:
mli396
Date:
Wed Nov 28 21:23:21 2018 +0000
Child:
1:75f2425fdb01
Commit message:
hello

Changed in this revision

LSM9DS1_Library_cal.lib Show annotated file Show diff for this revision Revisions of this file
RPCInterface.lib Show annotated file Show diff for this revision Revisions of this file
SparkfunAnalogJoystick.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/LSM9DS1_Library_cal.lib	Wed Nov 28 21:23:21 2018 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/4180_1/code/LSM9DS1_Library_cal/#452239f4af58
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RPCInterface.lib	Wed Nov 28 21:23:21 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/MichaelW/code/RPCInterface/#9d82e28ffaea
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SparkfunAnalogJoystick.lib	Wed Nov 28 21:23:21 2018 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/a/code/SparkfunAnalogJoystick/#ed0057aa2e31
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Nov 28 21:23:21 2018 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "SparkfunAnalogJoystick.h"
+#include "LSM9DS1.h"
+#define PI 3.14159
+using namespace mbed;
+
+DigitalOut myled(LED1);
+SparkfunAnalogJoystick joystick(p18, p19, p20);
+Serial pc(USBTX, USBRX);
+
+int main() {
+    while(1) {
+        pc.printf("X-Axis: %f\n\r", joystick.xAxis());
+        pc.printf("rpc x-axis: /xaxis/write %f\n\r", joystick.xAxis());
+        pc.printf("Y-Axis: %f\n\r", joystick.yAxis());
+        pc.printf("rpc y-axis: /yaxis/write %f\n\r", joystick.yAxis());
+        
+        pc.printf("Angle: %f\n\r", joystick.angle());
+        pc.printf("Distance: %f\n\r", joystick.distance());
+        pc.printf("Button: %d\n\r\n", joystick.button());
+        
+        wait(1);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Nov 28 21:23:21 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file