Lesson 3: Controlling the Frequency of the Blink ¶ Connect the Grove Button to digital interface D6. Use a Grove cable to connect the Grove LED to Seeeduino Lotus's digital interface D4. Pressing the button will turn the LED module on. If the state of the button is high, the LED pin outputs a high level and turn the LED on, else turn LED off. The usage of the statement is: if the logical expression in parentheses is true, execute the statement in curly braces after if, if not, execute the statement in curly braces after the else. For Mac OS users, it should be /dev/cu.SLAB_USBtoUART.Ĥ.Create a new Arduino file and name it Hello.ino, then copy the following code into it: Select Arduino Uno as Board.ģ.Click Tools -> Port to select the correct Port (the Serial Port showed in Device Manager in the previous step). At this point, the driver should be reinstalled.Ģ.Click on Tools -> Board-> Arduino AVR Boards-> Arduino Uno to select the correct Development Board Model.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |