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 Fa2018-es200-1121-3321-thread-example-rockem by
Revision 3:68bba10e81aa, committed 2018-10-14
- Comitter:
- evangeli
- Date:
- Sun Oct 14 22:00:35 2018 +0000
- Parent:
- 2:2710cfd7bc6a
- Child:
- 4:6ccbc7542ddc
- Commit message:
- trying to get docstrings to work right
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Oct 14 21:58:10 2018 +0000
+++ b/main.cpp Sun Oct 14 22:00:35 2018 +0000
@@ -49,12 +49,11 @@
-
+/**
+ * Callback for executing a simple motor action. When sw1 is high,
+ * the motor turns forward, otherwise the motor turns off.
+ */
void m_callback(void){
- /**
- Callback for executing a simple motor action. When sw1 is high,
- the motor turns forward, otherwise the motor turns off.
- */
printf("m_thread running\n");
while(1) {
if (sw1.read()){
@@ -71,12 +70,11 @@
-
+/**
+ * Simple callback for servo motion. When sw2 is high, the servo steps right,
+ * otherwise it steps left. If it hits the ends it stays there.
+ */
void s1_callback(void){
- /**
- Simple callback for servo motion. When sw2 is high, the servo steps right,
- otherwise it steps left. If it hits the ends it stays there.
- */
printf("s1_thread running\n");
while(1){
if (sw2.read()){
