[oe-commits] Robert Nelson : picodlp-control: add options to control individual leds and overall led current

GIT User account git at amethyst.openembedded.net
Fri Feb 20 16:07:28 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 797d7ee55602219e923350f3e1b5e5440e4a7e42
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=797d7ee55602219e923350f3e1b5e5440e4a7e42

Author: Robert Nelson <robert.nelson at digikey.com>
Date:   Fri Feb 20 17:02:08 2009 +0100

picodlp-control: add options to control individual leds and overall led current

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 packages/i2c-tools/picodlp-control/picodlp-control |   39 +++++++++++++++++++-
 packages/i2c-tools/picodlp-control_0.1.bb          |    2 +-
 2 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/packages/i2c-tools/picodlp-control/picodlp-control b/packages/i2c-tools/picodlp-control/picodlp-control
index dd7d9bf..3c3cd5a 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
 
 
diff --git a/packages/i2c-tools/picodlp-control_0.1.bb b/packages/i2c-tools/picodlp-control_0.1.bb
index 79a896b..5fb5630 100644
--- a/packages/i2c-tools/picodlp-control_0.1.bb
+++ b/packages/i2c-tools/picodlp-control_0.1.bb
@@ -1,6 +1,6 @@
 DESCRIPTION = "Small application to control the pico DLP over I2C"
 LICENSE = "GPLv3"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "file://*.c file://*.h file://${PN}"
 





More information about the Openembedded-commits mailing list