From 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Mon, 26 Oct 2015 14:49:46 -0400 Subject: quantum separated --- quantum/analog.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 quantum/analog.h (limited to 'quantum/analog.h') diff --git a/quantum/analog.h b/quantum/analog.h new file mode 100644 index 0000000000..9b95a93bef --- /dev/null +++ b/quantum/analog.h @@ -0,0 +1,36 @@ +#ifndef _analog_h_included__ +#define _analog_h_included__ + +#include + +void analogReference(uint8_t mode); +int16_t analogRead(uint8_t pin); +int16_t adc_read(uint8_t mux); + +#define ADC_REF_POWER (1<