diff options
Diffstat (limited to 'packages')
-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" |