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:
27
ioscript/try
Normal file
27
ioscript/try
Normal 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
|
||||
Reference in New Issue
Block a user