Newer
Older
#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