Handle LoRa Basic Function
ADC.h
- Committer:
- biwa1400
- Date:
- 2017-03-08
- Revision:
- 0:f8af47d9f0cd
File content as of revision 0:f8af47d9f0cd:
#ifndef _ADC_H #define _ADC_H #include "mbed.h" #include "mDot.h" class ADC_class { private: int movBits; int ADCwaitTime; unsigned short adcDistance; // AnalogIn Distance(); bool init(); public: ADC_class(){init();} unsigned short sample(); unsigned short read_ADC(){return adcDistance;} bool sample_and_judge_result(unsigned short threshold); }; #endif