Users can enter int, float, or string data types, but you will need to know in advance what data type the user will be entering. The code for the prompt could be a simple Serial.print() function that prints the question to the serial monitor. It’s just text to tell the user they need to enter something. This could be a question like “how many times do you want the LED to blink” or “choose an option from the menu”. To get a user’s input from the serial monitor, the first step is to prompt the user for information. It includes all of the parts, wiring diagrams, code, and step-by-step instructions for 58 different robotics and internet of things projects that are super fun to build! How to Get User Input From the Serial Monitor
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |