Added one task
Dependencies: mbed
Diff: mylib/inc/adc.h
- Revision:
- 0:fb4269aa5fb4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mylib/inc/adc.h Fri May 26 03:51:19 2017 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" + +#define ADC_VREF 3.3f //ADC基準電圧 + +/*----------Internal ADC------------*/ +extern AnalogIn ain_cup; //測距センサ用ADCポート +extern AnalogIn ain_lift; +extern AnalogIn ain_shelf; +/*----------------------------------*/ + +float Ain_To_Vo(AnalogIn *); \ No newline at end of file