aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--boards.txt2
-rw-r--r--variants/yun/pins_arduino.h27
2 files changed, 28 insertions, 1 deletions
diff --git a/boards.txt b/boards.txt
index 9c8f558..2181292 100644
--- a/boards.txt
+++ b/boards.txt
@@ -35,7 +35,7 @@ yun.build.pid=0x8041
yun.build.usb_product="Arduino Yun"
yun.build.board=AVR_YUN
yun.build.core=arduino
-yun.build.variant=leonardo
+yun.build.variant=yun
yun.build.extra_flags={build.usb_flags}
##############################################################
diff --git a/variants/yun/pins_arduino.h b/variants/yun/pins_arduino.h
new file mode 100644
index 0000000..43912e7
--- /dev/null
+++ b/variants/yun/pins_arduino.h
@@ -0,0 +1,27 @@
+/*
+ pins_arduino.h - Pin definition functions for Arduino
+ Part of Arduino - http://www.arduino.cc/
+
+ Copyright (c) 2013 Arduino LLC
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General
+ Public License along with this library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ Boston, MA 02111-1307 USA
+
+ $Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
+*/
+
+#include "../leonardo/pins_arduino.h"
+
+#define LED_BUILTIN 13