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.
Fork of humanoid by
Diff: main.cpp
- Revision:
- 2:7d574b1ab3cd
- Parent:
- 0:0ea84b3cf851
- Child:
- 3:1345f959c490
diff -r cde16b5e604d -r 7d574b1ab3cd main.cpp
--- a/main.cpp Mon Apr 30 11:23:06 2018 +0000
+++ b/main.cpp Wed May 02 03:33:15 2018 +0000
@@ -8,11 +8,13 @@
EventQueue eventqueue;
int main()
-{
+{
+ SERVO_init();
ACCGYRO_init();
eventthread.start(callback(&eventqueue, &EventQueue::dispatch_forever));
//ACCGYRO_thread.start(ACCGYRO_init);
//Thread::wait(osWaitForever);
+ //eventqueue.call_every(1000, SERVO_task);
eventqueue.call_every(1000, ACCGYRO_task);
//q.dispatch();
//eventqueue.call_every(1000,printf,"LSM6DSL [acc/mg]: %6ld\r\n", ACCGYRO_get_gyro_x());
