Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ACM1602NI XBusServo mbed-src
Revision 0:3e197b983b65, committed 2014-10-02
- Comitter:
- sawa
- Date:
- Thu Oct 02 08:47:49 2014 +0000
- Child:
- 1:4fdeb414f4ce
- Commit message:
- proto 0.0.1
Changed in this revision
--- /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