sources and files for the bombatuino project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
523 B

  1. /*
  2. input_4051.h - Library for reading inputs from 4051 multiplexer
  3. Created by David A. Mellis, November 2, 2007.
  4. Released into the public domain.
  5. */
  6. #ifndef input_4051_h
  7. #define input_4051_h
  8. #include "Arduino.h"
  9. class input_4051
  10. {
  11. public:
  12. Morse(int analogPin, int s0Pin, int s1Pin, int s2Pin, void (*valueChangeCallback(int,int)));
  13. void loop(void);
  14. int getSpecificValue(int pin);
  15. private:
  16. int _analog;
  17. int _s0;
  18. int _s1;
  19. int _s2;
  20. void (*_valueChangeCallback(int,int);
  21. int _value[8];
  22. };
  23. #endif