Skip to content
Snippets Groups Projects
Potentiometer.h 447 B
Newer Older
13035516's avatar
13035516 committed
#ifndef _POTENTIOMETER_H_
#define _POTENTIOMETER_H_

#include <stdio.h>
#include "Configuration.h"

class Potentiometer {
    public:
        Potentiometer();
        Potentiometer(uint16_t _pin);
        ~Potentiometer();
        void Set_Pin(uint16_t _pin);
        void Set_Pin_Mode();
        uint16_t Get_Pin();
        void Read_Potentiometer();
        int Get_Reading();
    private:
        uint16_t pin;
        int pot_val;

};

#endif