Merge pull request #465 from UncleRus/pcf8591_update

PCF8591 driver update
This commit is contained in:
Ruslan V. Uss 2017-10-25 13:01:40 +05:00 committed by GitHub
commit 7cd1afc52d
3 changed files with 54 additions and 23 deletions

View file

@ -23,7 +23,7 @@ static void measure(void *pvParameters)
while (1)
{
vTaskDelay(1000 / portTICK_PERIOD_MS);
printf("Value: %d\n", pcf8591_read(&dev, 0x03));
printf("Value: %d\n", pcf8591_read(&dev, PCF8591_IC_4_SINGLES, 3));
}
}