Kazutaka "Zak" Sawa / mbed_XBus_Test

Dependencies:   ACM1602NI XBusServo mbed-src

Files at this revision

API Documentation at this revision

Comitter:
sawa
Date:
Thu Oct 02 08:47:49 2014 +0000
Child:
1:4fdeb414f4ce
Commit message:
proto 0.0.1

Changed in this revision

I2CLCD.lib Show annotated file Show diff for this revision Revisions of this file
XBusServo.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-src.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/I2CLCD.lib	Thu Oct 02 08:47:49 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/okini3939/code/I2CLCD/#bc4583ce560e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/XBusServo.lib	Thu Oct 02 08:47:49 2014 +0000
@@ -0,0 +1,1 @@
+XBusServo#381d475cfd6c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 02 08:47:49 2014 +0000
@@ -0,0 +1,40 @@
+/* main.c file
+ *
+ * for testing mbed XBusServo.cpp
+ *
+ * Copyright (c) 2014-2014 JR PROPO
+ * by Zak Sawa
+ */
+
+#include "mbed.h"
+//#include "I2CLCD.h"
+#include "XBusServo.h"
+
+
+//I2CLCD      LCD(I2C_SDA, I2C_SCL);
+XBusServo   XBus(PTD3, PTD2, 10);
+Ticker      timer;
+
+
+
+void XbusIntervalHandler()
+{
+    XBus.sendChannelDataPacket();
+}
+
+
+
+int main()
+{
+    uint16_t        theValue = kXbusServoNeutral;
+
+    XBus.addServo(0x01, kXbusServoNeutral);
+    
+    printf("added");
+//   timer.attach_us(&XbusIntervalHandler, kXBusInterval * 1000);
+
+//   while(1) {
+//       theValue += 10;
+//       XBus.setServo(0x01, theValue);
+//    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-src.lib	Thu Oct 02 08:47:49 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-src/#098575c6d2c8