[oe-commits] Koen Kooi : picodlp control: write to both flip bits, not twice to the same bit

GIT User account git at amethyst.openembedded.net
Fri Dec 19 14:38:55 UTC 2008


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

Author: Koen Kooi <koen at openembedded.org>
Date:   Fri Dec 19 15:34:50 2008 +0100

picodlp control: write to both flip bits, not twice to the same bit

---

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

diff --git a/packages/i2c-tools/picodlp-control/picodlp-control.c b/packages/i2c-tools/picodlp-control/picodlp-control.c
index 313d977..309b811 100644
--- a/packages/i2c-tools/picodlp-control/picodlp-control.c
+++ b/packages/i2c-tools/picodlp-control/picodlp-control.c
@@ -66,21 +66,21 @@ int main(int argc, char **argv)
 	/* set flip bits to 0 */
 	fprintf(stdout, "Setting flip bits to zero\n");
 	i2c_smbus_write_word_data(fd, 0x08, 0);
-	i2c_smbus_write_word_data(fd, 0x08, 0);
+	i2c_smbus_write_word_data(fd, 0x09, 0);
 
 	sleep(2);
 
 	/* set flip bits to 1 */
 	fprintf(stdout, "Getting flip bits to one\n");
 	i2c_smbus_write_word_data(fd, 0x08, 1);
-	i2c_smbus_write_word_data(fd, 0x08, 1);
+	i2c_smbus_write_word_data(fd, 0x09, 1);
 
 	sleep(2);
 
 	/* restore values */
 	fprintf(stdout, "Restoring flip bits \n");
 	i2c_smbus_write_word_data(fd, 0x08, hflip);
-	i2c_smbus_write_word_data(fd, 0x08, vflip);
+	i2c_smbus_write_word_data(fd, 0x09, vflip);
 
 	/* Output the values to stdout */
 	fprintf(stdout, "hflip: %d - vflip: %d\n", hflip, vflip);
diff --git a/packages/i2c-tools/picodlp-control_0.1.bb b/packages/i2c-tools/picodlp-control_0.1.bb
index 1f31910..94b2b50 100644
--- a/packages/i2c-tools/picodlp-control_0.1.bb
+++ b/packages/i2c-tools/picodlp-control_0.1.bb
@@ -1,5 +1,6 @@
 DESCRIPTION = "Small application to control the pico DLP over I2C"
 LICENSE = "GPLv3"
+PR = "r1"
 
 SRC_URI = "file://${PN}.c file://i2c-dev.h"
 





More information about the Openembedded-commits mailing list