Library to use my Photo MOS Relays Circuit having 16 or less channels.
Fork of PMRC4ch by
Diff: PMRC16ch.h
- Revision:
- 17:08a68860396b
- Parent:
- 15:56703876e914
- Child:
- 18:049283936e3f
--- a/PMRC16ch.h Tue Jun 26 12:42:26 2018 +0000 +++ b/PMRC16ch.h Tue Jun 26 12:48:46 2018 +0000 @@ -62,13 +62,13 @@ ); // Const. - enum State {ALLOFF = 0, CH1 = 1, CH2, CH3, CH4, CH5, CH6, CH7, CH8, + enum State {ALLGROUND = 0, CH1 = 1, CH2, CH3, CH4, CH5, CH6, CH7, CH8, CH9, CH10, CH11, CH12, CH13, CH14, CH15, CH16, NaN = 9999}; enum Polarity {Anodic = 0, Cathodic = 1}; // // Function to set channel // - char allOff(); + char allGround(); char setCh(State ch, Polarity cp = Cathodic); char setCh(char ch, Polarity cp = Cathodic); void allHiZ();