class ButtonPress { public: /*********************** Mit einfügen dieser Sektion: // Constructor to initialize keyValueSettings ButtonPress(PublicKeyValuePairs& keyValueSettings) : keyValueSettings(keyValueSettings) {} // Public method to check for significant press bool checkSignificantPress(char buttonPin) { return significantPressDetected(buttonPin); } *******************************/ private: // Private method to detect significant press bool significantPressDetected(char buttonPin) { // Use the keyValueSettings reference correctly // delay(keyValueSettings.getKeyValue("DEFAULT_buttonBounceEventDelay")); // Check if the button is still pressed if (digitalRead(buttonPin) == HIGH) { return true; // Button is pressed } else { return false; // Button is not pressed } } /*********************** und dieser Section // Reference to key-value settings PublicKeyValuePairs& keyValueSettings; streikt der Compiler ... ... ... ... ... ... ... ... *******************************/ };