   m_lastLedState = nval;
 }
 
-void digitalPin::updateLed(const bool blink) {
+void digitalPin::updateLed(const bool blink) const {
   uint8_t nstate;
   if (m_pinOn>0) {
     nstate = (m_lastLedState & 0x01) ? HIGH : LOW;

    pinMode(m_pinOff,OUTPUT);
    digitalWrite(m_pinOff,LOW);
  }
  m_lastLedState = 0;
  m_lastPinState = HIGH;
}

void digitalPin::updateSwitch() {

class analogOutPin {
  public:
    analogOutPin(const uint8_t id, const uint8_t pin);
    void updateState(const uint8_t val) const ;
    const uint8_t getId() const { return(m_id); }
  private:
    const uint8_t m_id, m_pin;
};
