1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2025-04-21 12:27:27 +03:00

ioscript/: script-based toggling of IO pins (for device testing)

This commit is contained in:
Werner Almesberger
2012-11-06 12:05:52 -03:00
parent a628cfa33c
commit 025726e48b
2 changed files with 151 additions and 0 deletions

27
ioscript/try Normal file
View File

@@ -0,0 +1,27 @@
# 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