SpaIot Library
cd4051.h
1/*
2 * SpaIot Library (c) by epsilonrt - epsilonrt@gmail.com
3 * This file is part of SpaIot library <https://github.com/epsilonrt/spaiot-lib>
4 *
5 * SpaIot library is licensed under a
6 * Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
7 *
8 * You should have received a copy of the license along with this
9 * work. If not, see <http://creativecommons.org/licenses/by-nc-sa/4.0/>.
10 *
11 * SpaIot library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY;
13 */
14#pragma once
15
16#include "multiplexer.h"
17
18namespace SpaIot {
19
24 class Cd4051 : public Multiplexer<8> {
25 public:
26 Cd4051 () :
27 Multiplexer<8> ()
28 {}
29
30 Cd4051 (const std::initializer_list<int>& spins, int inhPin) :
31 Multiplexer<8> (spins, inhPin)
32 {}
33
34 Cd4051 (int A, int B, int C, int INH) :
35 Multiplexer<8> ( {A, B, C}, INH)
36 {}
37 };
38
39 extern Cd4051 Scip1Ctrl;
40 extern Cd4051 Scip2CtrlA;
41 extern Cd4051 Scip2CtrlB;
42}
Multiplexer(const std::initializer_list< int > &spins, int inhPin)
Definition: multiplexer.h:40
SpaIot name space.
Definition: bussettings.h:21