diff options
author | SudhakarKuma | 2021-05-05 17:52:21 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-05 17:52:21 +0530 |
commit | da57a72ccdc26ef5f1c695929f5566b576fe6d3e (patch) | |
tree | 9d8c425c62e4084396ee901c6df7be26c0c8e40a | |
parent | ccd523eb095682f47315ba684219b56414ce6939 (diff) | |
download | FLOSS-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.png | bin | 32214 -> 518416 bytes | |||
-rw-r--r-- | user-code/dcmotor/figures/dcmotor-clock.png | bin | 26079 -> 484480 bytes | |||
-rw-r--r-- | user-code/dcmotor/figures/dcmotor-loop.png | bin | 28069 -> 476780 bytes | |||
-rw-r--r-- | user-code/dcmotor/python/dcmotor-clock.py | 2 | ||||
-rw-r--r-- | user-code/dcmotor/python/dcmotor-loop.py | 6 |
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 Binary files differindex c1945a2..4d16d06 100644 --- a/user-code/dcmotor/figures/dcmotor-both.png +++ b/user-code/dcmotor/figures/dcmotor-both.png diff --git a/user-code/dcmotor/figures/dcmotor-clock.png b/user-code/dcmotor/figures/dcmotor-clock.png Binary files differindex 165b463..5510e3c 100644 --- a/user-code/dcmotor/figures/dcmotor-clock.png +++ b/user-code/dcmotor/figures/dcmotor-clock.png diff --git a/user-code/dcmotor/figures/dcmotor-loop.png b/user-code/dcmotor/figures/dcmotor-loop.png Binary files differindex cd5398d..253cd72 100644 --- a/user-code/dcmotor/figures/dcmotor-loop.png +++ b/user-code/dcmotor/figures/dcmotor-loop.png 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() |