Project One - Blink

Introduction

The purpose of this project is to demonstrate a simple digital-out display using the LED twig. Connect your equipment as shown in the image below: Connect the LED Twig to the D1/D2 Digital I/O jack on the Grove Shield. Arduino Pin D1 powers the Green LED on the Twig’s SIG connector.

Now upload the following Arduino sketch:

// Project One - Double Blink
//

int del=500; // adjust for blink rate

void setup()
{
  pinMode(1, OUTPUT);
}

void loop()
{
  digitalWrite(1, HIGH);

  delay(del);
  digitalWrite(1, LOW);

  delay(del);
}

te simple. The LED alternately blink, with the delay between the two set by the variable del. However, in doing so you can experience for yourself how simple the Grove system is to use.

Help us make it better

Welcome to the new documentation system of Seeed Studio. We have made a lot of progress comparing to the old wiki system and will continue to improve it to make it more user friendly and helpful. The improvement can't be done without your kindly feedback. If you have any suggestions or findings, you are most welcome to submit the amended version as our contributor via Github or give us suggestions in the survey below, it would be more appreciated if you could leave your email so that we can reply to you. Happy Hacking!