summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudhakarKuma2021-05-05 17:52:21 +0530
committerSudhakarKuma2021-05-05 17:52:21 +0530
commitda57a72ccdc26ef5f1c695929f5566b576fe6d3e (patch)
tree9d8c425c62e4084396ee901c6df7be26c0c8e40a
parentccd523eb095682f47315ba684219b56414ce6939 (diff)
downloadFLOSS-Arduino-Book-da57a72ccdc26ef5f1c695929f5566b576fe6d3e.tar.gz
FLOSS-Arduino-Book-da57a72ccdc26ef5f1c695929f5566b576fe6d3e.tar.bz2
FLOSS-Arduino-Book-da57a72ccdc26ef5f1c695929f5566b576fe6d3e.zip
Add Xcos images with com2
-rw-r--r--user-code/dcmotor/figures/dcmotor-both.pngbin32214 -> 518416 bytes
-rw-r--r--user-code/dcmotor/figures/dcmotor-clock.pngbin26079 -> 484480 bytes
-rw-r--r--user-code/dcmotor/figures/dcmotor-loop.pngbin28069 -> 476780 bytes
-rw-r--r--user-code/dcmotor/python/dcmotor-clock.py2
-rw-r--r--user-code/dcmotor/python/dcmotor-loop.py6
5 files changed, 4 insertions, 4 deletions
diff --git a/user-code/dcmotor/figures/dcmotor-both.png b/user-code/dcmotor/figures/dcmotor-both.png
index c1945a2..4d16d06 100644
--- a/user-code/dcmotor/figures/dcmotor-both.png
+++ b/user-code/dcmotor/figures/dcmotor-both.png
Binary files differ
diff --git a/user-code/dcmotor/figures/dcmotor-clock.png b/user-code/dcmotor/figures/dcmotor-clock.png
index 165b463..5510e3c 100644
--- a/user-code/dcmotor/figures/dcmotor-clock.png
+++ b/user-code/dcmotor/figures/dcmotor-clock.png
Binary files differ
diff --git a/user-code/dcmotor/figures/dcmotor-loop.png b/user-code/dcmotor/figures/dcmotor-loop.png
index cd5398d..253cd72 100644
--- a/user-code/dcmotor/figures/dcmotor-loop.png
+++ b/user-code/dcmotor/figures/dcmotor-loop.png
Binary files differ
diff --git a/user-code/dcmotor/python/dcmotor-clock.py b/user-code/dcmotor/python/dcmotor-clock.py
index 5b944f7..fbd3cf2 100644
--- a/user-code/dcmotor/python/dcmotor-clock.py
+++ b/user-code/dcmotor/python/dcmotor-clock.py
@@ -34,7 +34,7 @@ class DCMOTOR_ROTATION:
self.obj_arduino.close_serial()
def main():
- obj_dcmotor=DCMOTOR_ROTATION(115200)
+ obj_dcmotor = DCMOTOR_ROTATION(115200)
if __name__=='__main__':
main()
diff --git a/user-code/dcmotor/python/dcmotor-loop.py b/user-code/dcmotor/python/dcmotor-loop.py
index ee2f9cc..a581b6d 100644
--- a/user-code/dcmotor/python/dcmotor-loop.py
+++ b/user-code/dcmotor/python/dcmotor-loop.py
@@ -28,11 +28,11 @@ class DCMOTOR_ROTATION:
self.obj_arduino.cmd_dcmotor_setup(1, 3, 1, self.pin1, self.pin2)
self.obj_arduino.cmd_dcmotor_run(1, 1, 100)
sleep(3)
- self.obj_arduino.cmd_dcmotor_run(1,1,0)
+ self.obj_arduino.cmd_dcmotor_run(1, 1, 0)
sleep(2)
- self.obj_arduino.cmd_dcmotor_run(1,1,-100)
+ self.obj_arduino.cmd_dcmotor_run(1, 1, -100)
sleep(2)
- self.obj_arduino.cmd_dcmotor_release(1,1)
+ self.obj_arduino.cmd_dcmotor_release(1, 1)
def exit(self):
self.obj_arduino.close_serial()