 digitalPin::digitalPin(const uint8_t id, const uint8_t pinSwitch, const uint8_t pinOn, const uint8_t pinOff) :
   m_id(id), m_pinSwitch(pinSwitch), m_pinOn(pinOn), m_pinOff(pinOff)
 {
-  if (m_pinSwitch>0) { pinMode(m_pinSwitch,INPUT_PULLUP); }
+  if (m_pinSwitch>0) {
+    pinMode(m_pinSwitch,INPUT_PULLUP);
+  }
   if (m_pinOn>0) {
     pinMode(m_pinOn,OUTPUT);
     digitalWrite(m_pinOn,LOW);

    digitalPin(const uint8_t id, const uint8_t pinSwitch, const uint8_t pinOn, const uint8_t pinOff);
    void updateSwitch();
    void updateLedState(const uint8_t c, const uint8_t val);
    void updateLed(const bool blink);
    const uint8_t getId() { return(m_id); }
  private:
    const uint8_t m_id, m_pinSwitch, m_pinOn, m_pinOff;
    uint8_t m_lastPinState;
    uint8_t m_lastLedState; // bits: 0=GxON, 1=RxON, 2=GxBLINK, 3=RxBLINK
};

digitalPin digiPins[] = {

    pinMode(m_pinOff,OUTPUT);
    digitalWrite(m_pinOff,LOW);
  }
}

void digitalPin::updateSwitch() {
