https://github.com/eduardoklosowski/vdlkino-python
Library in Python for comunicate computer with Arduino running VDLKino
https://github.com/eduardoklosowski/vdlkino-python
Last synced: 2 months ago
JSON representation
Library in Python for comunicate computer with Arduino running VDLKino
- Host: GitHub
- URL: https://github.com/eduardoklosowski/vdlkino-python
- Owner: eduardoklosowski
- License: mit
- Created: 2015-03-17T16:26:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-18T03:02:44.000Z (over 10 years ago)
- Last Synced: 2025-02-09T19:28:55.492Z (4 months ago)
- Language: Python
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
VDLKino for Python
==================.. _Arduino: http://arduino.cc/
.. _Python: https://www.python.org/
.. _VDLKino: https://github.com/eduardoklosowski/vdlkinoLibrary in Python_ for comunicate computer with Arduino_ running VDLKino_.
Support serial (pyserial requirement) and ethernet versions.
Exemple
-------Blink with Serial comunication
##############################.. code-block:: python
from time import sleep
from vdlkino import HIGH, LOW
from vdlkino.serial import VdlkinoSerialarduino = VdlkinoSerial('/dev/ttyACM0')
led = 2while True:
arduino.set_digital(led, HIGH)
sleep(1)
arduino.set_digital(led, LOW)
sleep(1)Blink with Ethernet comunication
################################.. code-block:: python
from time import sleep
from vdlkino import HIGH, LOW
from vdlkino.ethernet import VdlkinoEthernetarduino = VdlkinoEthernet('192.168.1.177')
led = 2while True:
arduino.set_digital(led, HIGH)
sleep(1)
arduino.set_digital(led, LOW)
sleep(1)