![]() The print procedure is just like println except it does not print out a "carriage return" at the end, starting a new line. Note that we're using 2 procedures here, the original println and now also print. Void loop() // we need this to be here even though its empty begin(9600) // set up Serial library at 9600 bps Serial. Void setup() // run once, when the sketch starts Make the Arduino chill out a little by adding a one second delay to the sketch, so that it only prints out Hello World once a second. The data is being transmitted so fast, that we can't see the TX LED 's sending data many times a second! What's going on here? Hint: Remember lesson 2?.Try waving the Arduino around in a dark room, what do you see?.You will see Hello World! scroll by super fast! ![]() Perform this modification and then compile and upload the new hyper-hello sketch. Simply move the Serial.println("Hello world!") statement from the setup procedure to the loop procedure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |