picodlp control: write to both flip bits, not twice to the same bit
authorKoen Kooi <koen@openembedded.org>
Fri, 19 Dec 2008 14:34:50 +0000 (15:34 +0100)
committerKoen Kooi <koen@openembedded.org>
Fri, 19 Dec 2008 14:34:50 +0000 (15:34 +0100)
packages/i2c-tools/picodlp-control/picodlp-control.c
packages/i2c-tools/picodlp-control_0.1.bb

index 313d977..309b811 100644 (file)
@@ -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);
index 1f31910..94b2b50 100644 (file)
@@ -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"