Simple LED blink

I know for a fact this has been done many times before, so why not mine? I will use this post as practice so that's why i'm posting a simple program to get the hang of the forum.

  This is a basic blink function for Arduino uno R3 that uses the onboard LED, if you want, you can plug an LED into the ground port and the 13 port and that LED will do the same thing as the onboard one.
  Code by Mike T. Pate

int ledPin = 13;

void setup() {
  pinMode(ledPin, OUTPUT);

void loop() {
  digitalWrite(ledPin, HIGH);
  digitalWrite(ledPin, LOW);

That's a first! :slight_smile:

I will use this post as practice...

I suggest you also familiarize yourself with the section descriptions.

Your test may have worked but you need a little practice with the return key so people can read the description!


int ledPin = 13;

Do you plan on having 32767 pins, or changing the value of the pin whilst the program is running?