python啦啦队api
cheerled的Python项目详细描述
说明
这个库提供了一个api来向slc16h-ir/cheer led设备发送消息。 该设备是一个可编程的LED阵列,适用于商店标志和活动大厅。
包含的程序
cheer-text [-f FileNo] [-c Colour] [-a Animation] [-f Font] [-b Beep[1-3]] [-s Speed[1-8]] TextLine1 [TextLine2,%time,%date]
cheer-graphic [-f FileNo] GraphicNumber
cheer-timed-file TimerId [-f FileNoToDisplay] HH:MM:SS [-w Weekdays(default all)]
cheer-hour-alarm [Yes/no]
cheer-auto-on HH:MM:SS
cheer-auto-off HH:MM:SS
cheer-update-time
如何使用
安装要求:
Python pyserial(又名python serial)
一种基于SLC16H的工作设备,通过串行或USB连接。
确保您已确定SLC16H连接到哪个TTY设备,例如 作为/dev/tty0或/dev/ttyusb0,具体取决于连接方法。
以脚本为例,对接口运行脚本或程序。