diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-19 15:34:50 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-19 15:34:50 +0100 |
commit | 38b122343c4d2200eabb682f5821ea4e26576873 (patch) | |
tree | b0613b52470b20b4881d4c5e81f069a6bdd9bb30 /packages/i2c-tools | |
parent | dce67387e065102fb3a765f45bf8d4c32027dfeb (diff) |
picodlp control: write to both flip bits, not twice to the same bit
Diffstat (limited to 'packages/i2c-tools')
-rw-r--r-- | packages/i2c-tools/picodlp-control/picodlp-control.c | 6 | ||||
-rw-r--r-- | 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 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); diff --git a/packages/i2c-tools/picodlp-control_0.1.bb b/packages/i2c-tools/picodlp-control_0.1.bb index 1f31910827..94b2b50c02 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" |