diff options
author | Robert Nelson <robert.nelson@digikey.com> | 2009-02-20 17:02:08 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-02-20 17:02:56 +0100 |
commit | 797d7ee55602219e923350f3e1b5e5440e4a7e42 (patch) | |
tree | 46ab195bb4e2dc1341d9e65e5f84fe8ca3d85116 /packages/i2c-tools/picodlp-control | |
parent | f0eb06723002da557afffea96b257904ac007cbf (diff) |
picodlp-control: add options to control individual leds and overall led current
Signed-off-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'packages/i2c-tools/picodlp-control')
-rwxr-xr-x | packages/i2c-tools/picodlp-control/picodlp-control | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/packages/i2c-tools/picodlp-control/picodlp-control b/packages/i2c-tools/picodlp-control/picodlp-control index dd7d9bfd6b..3c3cd5acbb 100755 --- a/packages/i2c-tools/picodlp-control/picodlp-control +++ b/packages/i2c-tools/picodlp-control/picodlp-control @@ -43,8 +43,45 @@ case ${PICO_OPTION} in ${I2C_APP} ${PICO_ADDRESS} wb4 0x26 ${WORD_OFF} fi;; +"rled") + if [ $2 -gt 0 ] ; then + ${I2C_APP} ${PICO_ADDRESS} wb4 0x11 ${WORD_ON} + else + ${I2C_APP} ${PICO_ADDRESS} wb4 0x11 ${WORD_OFF} + fi;; + +"gled") + if [ $2 -gt 0 ] ; then + ${I2C_APP} ${PICO_ADDRESS} wb4 0x12 ${WORD_ON} + else + ${I2C_APP} ${PICO_ADDRESS} wb4 0x12 ${WORD_OFF} + fi;; + +"bled") + if [ $2 -gt 0 ] ; then + ${I2C_APP} ${PICO_ADDRESS} wb4 0x13 ${WORD_ON} + else + ${I2C_APP} ${PICO_ADDRESS} wb4 0x13 ${WORD_OFF} + fi;; + +"itp") + if [ $2 -gt 0 ] ; then + ${I2C_APP} ${PICO_ADDRESS} wb4 0x0B ${WORD_OFF} + ${I2C_APP} ${PICO_ADDRESS} wb4 0x04 ${WORD_ON} + #Parallel RGB Setting + else + ${I2C_APP} ${PICO_ADDRESS} wb4 0x0B $3 + ${I2C_APP} ${PICO_ADDRESS} wb4 0x04 ${WORD_OFF} + #Test Pattern + fi;; +"ledc") + ${I2C_APP} ${PICO_ADDRESS} wb4 0x0E $4 + ${I2C_APP} ${PICO_ADDRESS} wb4 0x0F $5 + ${I2C_APP} ${PICO_ADDRESS} wb4 0x10 $6 + ;; + *) - echo "Usage: $0 vflip|hflip|temporal-enhance 0/1";; + echo "Usage: $0 vflip|hflip|temporal-enhance|rled|gled|bled|itp|ledc 0/1 0x";; esac |