Arduino restart

My Arduino is working without problems for a few years now. But now it's time to try a few new ideas and plant a few new ones.

The Makefile from my 2011-Blogpost doesn't work with the newest Arduino-Package. But there is a better one: https://github.com/sudar/Arduino-Makefile And the best is that Debian/Ubuntu has a package for it arduino-mk.

void setup() {
  // initialize the digital pin as an output.
  // Pin 9 has an LED connected on most Arduino boards:
  pinMode(9, OUTPUT);
}

void loop() {
  digitalWrite(9, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(9, LOW);    // set the LED off
  delay(1000);              // wait for a second
}

Code to get the Arduino Uno blink

BOARD_TAG    = uno
ARDUINO_LIBS =

include /usr/share/arduino/Arduino.mk

I tried the same with a leonardo which seems a bit more error-prone. Resets needs to be pressed and a disconnect from usb before programming helps.