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