Discuss Scratch

Skizzors
Scratcher
49 posts

Arduino


(Click the Arduino logo to go to the official arduino website)

I got an Arduino Uno for Christmas and I am loving it already! The Arduino programming language is based off of C++ (Which I know already) so it is easy for me to write Arduino programs.
Here is a basic code of mine which makes a LED in pin 13 blink.
//Skizzors's Blinking LED Sketch
//Version 1.0

const int LED =13; // Tells the Arduino that the LED is connected to digital pin 13

void setup()
{
pinMode(LED, OUTPUT); // Make the digital pin an output pin
}

void loop ()
{
digitalWrite(LED, HIGH); // Turn the LED on
delay(1000); // Wait 1 second
digitalWrite(LED, LOW); // Turn the LED off
delay(1000):
}
That is the first program you ever learn (Usually) in Arduino.

Feel free to discuss or ask questions about Arduino in this topic!


An Arduino Uno

If you want the image url for the Arduino logo for forum posts, copy the code below into your post
[img]upload.wikimedia.org/wikipedia/commons/4/42/Arduino_Uno_logo.png[/img]

Last edited by Skizzors (Dec. 27, 2013 19:27:12)

Harakou
Scratcher
1000+ posts

Arduino

Not to burst your bubble, but it looks like someone beat you to it by a few hours. Why don't you post this over there?

Powered by DjangoBB