libraries / Bridge / examples / RemoteDueBlink / RemoteDueBlink.inoon commit Added link to project report (97a3ba0)
   1/*
   2  Blink
   3  Turns on an LED on for one second, then off for one second, repeatedly.
   4
   5  Most Arduinos have an on-board LED you can control. On the Uno and
   6  Leonardo, it is attached to digital pin 13. If you're unsure what
   7  pin the on-board LED is connected to on your Arduino model, check
   8  the documentation at http://www.arduino.cc
   9
  10  This example code is in the public domain.
  11
  12  modified 8 May 2014
  13  by Scott Fitzgerald
  14
  15  modified by Marco Brianza to show the remote sketch update feature on Arduino Due using Yún Shield
  16 */
  17
  18#include <Bridge.h>
  19
  20// the setup function runs once when you press reset or power the board
  21void setup() {
  22  checkForRemoteSketchUpdate();
  23  // initialize digital pin 13 as an output.
  24  pinMode(13, OUTPUT);
  25}
  26
  27// the loop function runs over and over again forever
  28void loop() {
  29  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  30  delay(100);              // wait for a second
  31  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  32  delay(100);              // wait for a second
  33}