1 Star 1 Fork 1

xiaojun/ledmatrix

forked from 风漠兮/ledmatrix 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sample1.py 805 Bytes
一键复制 编辑 原始数据 按行查看 历史
oricorde 提交于 2015-05-16 15:44 . Class and Sample
from ledmatrix import LEDMatrix
import datetime
while True:
red1_pin = 17
clock_pin = 3
a_pin = 7
b_pin = 8
c_pin = 9
d_pin = 10
latch_pin = 4
oe_pin = 2
ledmatrix = LEDMatrix()
#ledmatrix = LEDMatrix(red1_pin, clock_pin, a_pin, b_pin, c_pin, d_pin, latch_pin, oe_pin)
ledmatrix.swipeLeft()
ledmatrix.displayLongMessage(datetime.datetime.strftime(datetime.datetime.now(), '%Y-%m-%d %H:%M:%S'))
ledmatrix.displayMessage('ABcd1234','efGH5678')
ledmatrix.swipeLeft()
ledmatrix.displayLongMessage('Raspberry Pi LED Matrix with Python ',True)
ledmatrix.swipeLeft()
ledmatrix.drawRect(0,0,10,12,1)
ledmatrix.drawCharacter(48,0,71)
ledmatrix.drawCharacter(56,0,55)
ledmatrix.drawDigital(32,0,2)
ledmatrix.drawDigital(40,0,4)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaojunid/ledmatrix.git
[email protected]:xiaojunid/ledmatrix.git
xiaojunid
ledmatrix
ledmatrix
master

搜索帮助