source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/libraries/Robot_Motor/src/Multiplexer.h @ 46

Last change on this file since 46 was 46, checked in by jrpelegrina, 4 years ago

First release to Xenial

File size: 447 bytes
Line 
1#ifndef Multiplexer_h
2#define Multiplexer_h
3
4#if ARDUINO >= 100
5#include "Arduino.h"
6#else
7#include "WProgram.h"
8#endif
9
10class Multiplexer{
11        public:
12                void begin(uint8_t* selectors, uint8_t Z, uint8_t length);
13                void selectPin(uint8_t num);
14                int getAnalogValue();
15                int getAnalogValueAt(uint8_t num);
16                bool getDigitalValue();
17                bool getDigitalValueAt(uint8_t num);
18        private:
19                uint8_t selectors[4];
20                uint8_t pin_Z;
21                uint8_t length;
22};
23
24#endif
Note: See TracBrowser for help on using the repository browser.