microrobotics

CT0078SIM

Sep 8th, 2017
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. // the setup function runs once when you press reset or power the board
  2. void setup() {
  3.   // initialize digital pin LED_BUILTIN as an output.
  4.   pinMode(LED_BUILTIN, OUTPUT);
  5. }
  6.  
  7. // the loop function runs over and over again forever
  8. void loop() {
  9.   digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  10.   delay(1000);                       // wait for a second
  11.   digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  12.   delay(1000);                       // wait for a second
  13. }
Add Comment
Please, Sign In to add comment