summaryrefslogtreecommitdiff
path: root/packages/i2c-tools/picodlp-control/picodlp-control.c
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-12-19 15:34:50 +0100
committerKoen Kooi <koen@openembedded.org>2008-12-19 15:34:50 +0100
commit38b122343c4d2200eabb682f5821ea4e26576873 (patch)
treeb0613b52470b20b4881d4c5e81f069a6bdd9bb30 /packages/i2c-tools/picodlp-control/picodlp-control.c
parentdce67387e065102fb3a765f45bf8d4c32027dfeb (diff)
picodlp control: write to both flip bits, not twice to the same bit
Diffstat (limited to 'packages/i2c-tools/picodlp-control/picodlp-control.c')
-rw-r--r--packages/i2c-tools/picodlp-control/picodlp-control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/i2c-tools/picodlp-control/picodlp-control.c b/packages/i2c-tools/picodlp-control/picodlp-control.c
index 313d977f58..309b811bcc 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);