bombatuino/source/library/input_4051/input_4061.h

29 lines
523 B
C
Raw Normal View History

2013-02-13 20:05:54 +01:00
/*
input_4051.h - Library for reading inputs from 4051 multiplexer
Created by David A. Mellis, November 2, 2007.
Released into the public domain.
*/
#ifndef input_4051_h
#define input_4051_h
#include "Arduino.h"
class input_4051
{
public:
Morse(int analogPin, int s0Pin, int s1Pin, int s2Pin, void (*valueChangeCallback(int,int)));
void loop(void);
int getSpecificValue(int pin);
private:
int _analog;
int _s0;
int _s1;
int _s2;
void (*_valueChangeCallback(int,int);
int _value[8];
};
#endif