![]() Lastly, we have added a string for msg3 which is equal to comma base and welcome to arduino.Īlso, as you would expect, there is a semicolon thats all for our messages. It is equal to hello if you notice, there is a space here and, needless to say, dont forget semicolon. This string, of course, is asking: what is your name please, and this will be displayed for the user to see. ![]() We should declare it, and this is what we have here with msg remember. We learned from our previous video, so we start by asking the question: it will be the same basis here to read a string. For this we need the arduino and the ide yeah. Then we will give the user a choice of which led he wants to turn on. We will start our class with the simple question that the user will have to answer. This video is all about learning how to interact with the arduino where, by the end of it, you will be able to send words or comments, and all we will need is to learn how to program the argument in a way that he can understand. We only learn how to read integers as well as floating point number over the serial monitor. This means that the arduino will be able to read words or sentences, also known as string so far in our previous arduinos lesson. Now you may ask: why do we need to read strings from the serial monitor? Well, basically, this is to allow us to get input from a user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |