private
| 38 | { |
| 39 | //private |
| 40 | void EX_Alarm::writeStateToPin() |
| 41 | { |
| 42 | if (m_nCurrentAlarmState == both) { |
| 43 | digitalWrite(m_nPin, m_bInvertLogic ? LOW : HIGH); |
| 44 | if (m_bUseStrobe) { digitalWrite(m_nPinStrobe, m_bInvertLogic ? LOW : HIGH); } |
| 45 | } |
| 46 | else if(m_nCurrentAlarmState == siren) { |
| 47 | digitalWrite(m_nPin, m_bInvertLogic ? LOW : HIGH); |
| 48 | if (m_bUseStrobe) { digitalWrite(m_nPinStrobe, m_bInvertLogic ? HIGH : LOW); } |
| 49 | } |
| 50 | else if(m_nCurrentAlarmState == strobe) { |
| 51 | digitalWrite(m_nPin, m_bInvertLogic ? HIGH : LOW); |
| 52 | if (m_bUseStrobe) { digitalWrite(m_nPinStrobe, m_bInvertLogic ? LOW : HIGH); } |
| 53 | } |
| 54 | else if(m_nCurrentAlarmState == off) { |
| 55 | digitalWrite(m_nPin, m_bInvertLogic ? HIGH : LOW); |
| 56 | if (m_bUseStrobe) { digitalWrite(m_nPinStrobe, m_bInvertLogic ? HIGH : LOW); } |
| 57 | } |
| 58 | |
| 59 | } |
| 60 | |
| 61 | //public |
| 62 | //constructor |
nothing calls this directly
no outgoing calls
no test coverage detected