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>
This commit is contained in:
committed by
Brendan Le Foll
parent
1176fcf671
commit
44bebc4f87
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user