Skip to content
Snippets Groups Projects
DIPSwitch.h 420 B
Newer Older
13035516's avatar
13035516 committed
#ifndef _DIPSWITCH_H_
#define _DIPSWITCH_H_

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

class DIPSwitch {
    public:
        DIPSwitch();
        DIPSwitch(uint16_t _pin);
        ~DIPSwitch();
        void Set_Pin(uint16_t _pin);
        uint16_t Get_Pin();
        void Set_Pin_Mode();
        void Read_DIPSwitch();
        bool Get_Reading();
    private:
        uint16_t pin;
        bool pin_val;
};

#endif