#include #include Vector words; void waitForKeyboardReturnKey() { Serial.println("Press any key to continue..."); // Wait until at least one character is available in the buffer while (Serial.available() == 0) { // Do nothing, just wait for input } // Read all available characters in the buffer while (Serial.available() > 0) { Serial.read(); // Clear out the buffer to avoid unintended behavior delay(10); // Small delay to ensure all characters are read } Serial.println("Key pressed, continuing..."); } void setup() { Serial.begin(74880); while (!Serial) { // loop only } } void loop() { Serial.println("Test..."); delay(1000); waitForKeyboardReturnKey(); Serial.println(""); Serial.println("Adding 'Test' to words[]"); words.push_back("Test"); Serial.println("Printing words[0]"); Serial.println(">>>" + words[0] + "<<<"); waitForKeyboardReturnKey(); }