     uint8_t getId() { return(m_id); }
     uint8_t getSwitchState() const { return(m_lastPinState); }
   private:
-    void updateJoystick() const;
     const uint8_t m_id, m_pinSwitch;
     uint8_t m_lastPinState { HIGH } ;
 };

uint8_t joy2switch = 0;

// almost copy from ksp-gegi-mini!

class digitalPin {
  public:

      Serial.write('=');
      Serial.println(state);
      m_lastPinState = state;
      // map to joystick events
      handleSlaveButton(m_id,m_lastPinState);
    }
  }
}

