This repository has been archived on 2025-01-09. You can view files and clone it, but cannot push or open issues or pull requests.
cooler-controller/Board/lib/utils/ADC.h

28 lines
418 B
C++

//
// Created by User on 018 18.05.20.
//
#ifndef AVR_IOHELP_ADC_H
#define AVR_IOHELP_ADC_H
#include <avr/io.h>
#define ADC_READ_COUNT 5
enum ADCPort{
ADC0 = 0x00,
ADC1 = 0x01,
ADC2 = 0x02,
ADC3 = 0x03,
ADC4 = 0x04,
ADC5 = 0x05,
ADC6 = 0x06,
ADC7 = 0x07
//ADC8_INTERNAL = 0b1000
};
namespace ADCIO{
void setup();
uint16_t read(ADCPort port);
}
#endif //AVR_IOHELP_ADC_H