Dagozilla to RoboCup / Mbed 2 deprecated Coba_Motor_Driver_V2

Dependencies:   Motor_Driver_V2 mbed

Files at this revision

API Documentation at this revision

Comitter:
alienbernamaihsan
Date:
Sun Jan 27 10:56:56 2019 +0000
Child:
1:534a043ce77e
Commit message:
Ini kodingan buat nyobanya hehe

Changed in this revision

Motor_Driver_V2.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.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motor_Driver_V2.lib	Sun Jan 27 10:56:56 2019 +0000
@@ -0,0 +1,1 @@
+Motor_Driver_V2#98a8282033ab
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jan 27 10:56:56 2019 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+#include "motor.h"
+
+//format : PWM, pin digital (buat nentuin arah)
+motor motor1 (PA_9, PA_8);
+motor motor2 (PA_7, PC_7);
+motor motor3 (PA_5, PC_8);
+
+// Serial
+Serial pc(USBTX,USBRX,115200);
+ 
+int main() 
+{
+   
+    while(1) 
+    { 
+        motor1.setpwm(0.3);
+        motor2.setpwm(0.3);
+        motor3.setpwm(0.3);
+        wait(3);
+        motor1.setpwm(-0.3);
+        motor2.setpwm(-0.3);
+        motor3.setpwm(-0.3);
+        wait(3);
+
+
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Jan 27 10:56:56 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file