diff options
Diffstat (limited to 'include/arch/arduino-nano')
-rw-r--r-- | include/arch/arduino-nano/driver/adc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/arch/arduino-nano/driver/adc.h b/include/arch/arduino-nano/driver/adc.h new file mode 100644 index 0000000..4af64b8 --- /dev/null +++ b/include/arch/arduino-nano/driver/adc.h @@ -0,0 +1,17 @@ +#ifndef ADC_H +#define ADC_H + +class AVRADC { + private: + AVRADC(AVRADC const ©); + + public: + AVRADC() {} + + int16_t getTemp_mdegC(int16_t offset = 205); + uint16_t getVCC_mV(); +}; + +extern AVRADC adc; + +#endif |