ftdu-0.0.1
توضیحات
Client to talk with ftDuino via USB
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ftdu-0.0.1 |
| نام | ftdu |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lars Heuer |
| ایمیل نویسنده | heuer@semagia.com |
| آدرس صفحه اصلی | https://github.com/heuer/ftdu/ |
| آدرس اینترنتی | https://pypi.org/project/ftdu/ |
| مجوز | BSD |
ftdu - Talk to ftDuino via Python
=================================
ftdu can be used as client for the ```ftduino_direct``` sketch.
It provides a more pythonic API to communicate with a ftDuino.
Installation
------------
Install the ftduino_direct sketch, see <https://github.com/PeterDHabermehl/ftduino_direct#installation>
Use ``pip`` to install ftdu::
$ pip install ftdu
Usage
-----
Library
^^^^^^^
.. code-block:: python
>>> import ftdu
>>> ftd = ftdu.FtDuino()
>>> ftd.led = True # Switch the LED on
>>> ftd.o1 = True # Enable O1
>>> ftd.i1 # Ask value of input port I1
0
>>> ftd.close()
Changes
=======
0.0.1 -- 2018-02-16
-------------------
* Initial release
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0 | pyserial |
نحوه نصب
نصب پکیج whl ftdu-0.0.1:
pip install ftdu-0.0.1.whl
نصب پکیج tar.gz ftdu-0.0.1:
pip install ftdu-0.0.1.tar.gz