Permalink
Browse files

analogin example: add sleep between read

Signed-off-by: Nicola Lunghi <nicola.lunghi@emutex.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
  • Loading branch information...
Nicola Lunghi authored and arfoll committed Jan 4, 2018
1 parent 1176fcf commit 44bebc4f870ee947d6d2f5f3a3b78d9a8353b60f
Showing with 1 addition and 0 deletions.
  1. +1 −0 examples/analogin_a0.c
View
@@ -60,6 +60,7 @@ main()
adc_value_float = mraa_aio_read_float(adc_a0);
fprintf(stdout, "ADC A0 read %X - %d\n", adc_value, adc_value);
fprintf(stdout, "ADC A0 read float - %.5f (Ctrl+C to exit)\n", adc_value_float);
sleep(1);
}
r = mraa_aio_close(adc_a0);

0 comments on commit 44bebc4

Please sign in to comment.