Library to use my Photo MOS Relays Circuit having 16 or less channels.
Fork of PMRC4ch by
Diff: PMRC16ch.cpp
- Revision:
- 18:049283936e3f
- Parent:
- 17:08a68860396b
- Child:
- 20:26972de3cf90
--- a/PMRC16ch.cpp Tue Jun 26 12:48:46 2018 +0000 +++ b/PMRC16ch.cpp Tue Jun 26 13:00:40 2018 +0000 @@ -34,23 +34,18 @@ { m_CLR = 1; m_SCK = m_RCK = 0; - m_PMRC_state = NaN; - allGround(); + //reset shiftresister + m_CLR = 0; + update(); + //enable insertion data to SR + m_CLR = 1; + m_PMRC_state = ALLHiZ; m_PMRC_POL = Cathodic; } char PMRC16ch::allGround() { if (m_PMRC_state == ALLGROUND) return 1; - /* - //reset shiftresister - m_CLR = 0; - update(); - //enable insertion data to SR - m_CLR = 1; - */ - //set all channel gnd - //shiftby(16); sweep(); upload(); return static_cast<char>(m_PMRC_state = ALLGROUND);