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.
Diff: ikarashiMDC.h
- Revision:
- 11:de577e4080b2
- Parent:
- 7:a8fcb8df927a
- Child:
- 13:ea34af94e90c
diff -r d64c62c6697e -r de577e4080b2 ikarashiMDC.h
--- a/ikarashiMDC.h Fri Sep 01 00:33:39 2017 +0000
+++ b/ikarashiMDC.h Sat Sep 02 14:34:55 2017 +0000
@@ -18,29 +18,29 @@
* MDC libraly
*Example :
*@code
-*#include "mbed.h"
-*#include "ikarashiMDC.h"
-*Serial serial(PC_10,PC_11);
-*DigitalOut serialcontrol(D2);
+#include "mbed.h"
+#include "ikarashiMDC.h"
+Serial serial(PC_10,PC_11);
+DigitalOut serialcontrol(D2);
*
-*ikarashiMDC ikarashi[]{
+ikarashiMDC ikarashi[]{
* ikarashiMDC(&serialcontrol,2,2,SM,&serial),
* ikarashiMDC(&serialcontrol,2,3,LAP,&serial),
-*};
-*PwmOut pwm(LED1);
+};
+PwmOut pwm(LED1);
*
-*int main() {
-* serial.baud(115200);
+int main() {
+* serial.baud(38400);
* float i = -1;
* while(1) {
* ikarashi[0].setSpeed(i);
* ikarashi[1].setSpeed(i);
* i += 0.01;
-S* pwm = fabs(i);
+* pwm = fabs(i);
* wait_ms(20);
* if(i >= 1) i = -1;
* }
-*}
+}
*@endcode
**/
class ikarashiMDC