mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-19 08:23:08 +02:00
28 lines
358 B
Plaintext
28 lines
358 B
Plaintext
|
# test script for antorcha/whip/led/
|
||
|
|
||
|
#DAT2,DAT3,CMD,VDD,CLK,DAT0,DAT1
|
||
|
|
||
|
SCLK=DAT1
|
||
|
LCLK=DAT0
|
||
|
DS=CLK
|
||
|
|
||
|
VDD,DS,SCLK,LCLK
|
||
|
show
|
||
|
1111 # power off, drive all data lines to 1
|
||
|
sleep 0.1 # let caps trickle-charge
|
||
|
0000 # power on
|
||
|
-1-- # send "1"
|
||
|
--1-
|
||
|
--0-
|
||
|
--1- # send another "1"
|
||
|
--0-
|
||
|
---1 # latch
|
||
|
---0
|
||
|
sleep 1
|
||
|
-0-- # send "0"
|
||
|
--1-
|
||
|
--0-
|
||
|
---1 # latch
|
||
|
---0
|
||
|
sleep 1
|