L-Chika TWE Lite from Python via ToCoStick

There is a USB dongle called ToCoStick that allows you to send commands to TWE Lite from your PC.

http://tocos-wireless.com/jp/products/TWE-Lite-USB/

To send a command from this ToCoStick, it is necessary to send a slightly esoteric command sequence from a terminal or the like.

http://tocos-wireless.com/jp/products/TWE-Lite-USB/control.html

I wrote a Python library that makes it easy to write this like an Arduino digitalWrite function.

If you write like this

digitalWrite(1,HIGH)

Behind the scenes

s.write(':7880010101000000000000000005')

Will send the command.

of course

analogWrite(1,1024)

You can also write.

I'll leave it here. https://github.com/usopyon/tocotika

Recommended Posts

L-Chika TWE Lite from Python via ToCoStick
sql from python
MeCab from Python
POST messages from python to Slack via incoming webhook
Send data from Python to Processing via socket communication
Interact with Python on Android from PC via adb
Get data from database via ODBC with Python (Access)
Touch MySQL from Python 3
Operate Filemaker from Python
Access bitcoind from python
Changes from Python 3.0 to Python 3.5
Changes from Python 2 to Python 3.0
Python from or import
Use MySQL from Python
Run python from excel
Execute command from Python
Use MySQL from Python
Operate LXC from Python
Manipulate riak from python
Force Python from Fortran
Use BigQuery from python.
Execute command from python
[Python] Read From Stdin
Use mecab-ipadic-neologd from python