Added DAC support to PCF8591 driver

This commit is contained in:
UncleRus 2017-10-13 00:49:15 +05:00
parent 715bc8148c
commit 60b671ea44
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));
}
}