Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
tutorials_hello_world [2016/04/02 10:54]
admin
tutorials_hello_world [2016/11/25 17:51]
admin
Line 5: Line 5:
 Copy the code below and paste it in the Arduino IDE and then hit the Upload button. Copy the code below and paste it in the Arduino IDE and then hit the Upload button.
  
-<​html><​script src="​https://​gist.github.com/​deathmeek/​9709e893f1b53a925621419ac3e65199.js"></​script></​html+<​html><​script src="​https://​gist.github.com/​deathmeek/​3fb44730e255ec1ebd5d2863aba831bd.js"></​script></​html>​
- +
-<code C> +
-/* +
- * Blink +
- * +
- * The basic Arduino example. ​ Turns on an LED on for one second, +
- * then off for one second, and so on...  We use pin 11 because, +
- * on the Sparrow node it is connected to the green LED +
- * +
- * http://​www.arduino.cc/​en/​Tutorial/​Blink +
- */ +
-  +
-  +
-int ledPin = 11;                // LED (PB5) connected to digital pin 11 +
-  +
-void setup() ​                   // run once, when the sketch starts +
-+
-  pinMode(ledPin,​ OUTPUT); ​     // sets the digital pin as output +
-+
-  +
-  +
-void loop() ​                    // run over and over again +
-+
-  digitalWrite(ledPin,​ HIGH); ​  // sets the LED on +
-  delay(1000); ​                 // waits for a second +
-  digitalWrite(ledPin,​ LOW);    // sets the LED off +
-  delay(1000); ​                 // waits for a second +
-+
-</code>+
  
 After compiling and uploading, the RGB LED on the Sparrow node should blink green once a second. After compiling and uploading, the RGB LED on the Sparrow node should blink green once a second.
  
 +<note tip>Want to know how you can create millions of colors? Check out how [[tutorials_colors|here]]!</​note>​