aboutsummaryrefslogtreecommitdiff
path: root/examples/ATtinyBlink/Makefile
diff options
context:
space:
mode:
authorJohn Whittington <git@jbrengineering.co.uk>2018-01-03 08:14:39 +0000
committerJohn Whittington <git@jbrengineering.co.uk>2018-01-03 08:14:39 +0000
commita6d979ef90ddae3549876917f80847ea647c284a (patch)
tree342fd8732f1220e40ef423fff1be8c81f032af92 /examples/ATtinyBlink/Makefile
parentd874c59103fc9619df906c0f967bcfa539325592 (diff)
parentc3fe5dcc2fbd5c895b032ca5a5a1f60af163b744 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'examples/ATtinyBlink/Makefile')
-rw-r--r--examples/ATtinyBlink/Makefile62
1 files changed, 54 insertions, 8 deletions
diff --git a/examples/ATtinyBlink/Makefile b/examples/ATtinyBlink/Makefile
index b4e49be..f73d7a0 100644
--- a/examples/ATtinyBlink/Makefile
+++ b/examples/ATtinyBlink/Makefile
@@ -1,13 +1,59 @@
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
-# if you have placed the alternate core in your sketchbook directory, then you can just mention the core name alone.
-ALTERNATE_CORE = attiny
-# If not, you might have to include the full path.
-#ALTERNATE_CORE_PATH = /home/sudar/Dropbox/code/arduino-sketches/hardware/attiny/
+# Set this if the IDE is not in your $PATH or you want to use a specific version:
+ARDUINO_DIR = $(HOME)/arduino-1.8.5
-BOARD_TAG = attiny85-8
-ISP_PORT = /dev/ttyACM*
+# Programmer type:
+ISP_PROG = usbasp
-include $(ARDMK_DIR)/Arduino.mk
+# Examples - obviously pick only one and comment/delete the rest:
-# !!! Important. You have to use make ispload to upload when using ISP programmer
+# ------------------------------------------------------------------ #
+
+# https://github.com/SpenceKonde/ATTinyCore (1.5+)
+ALTERNATE_CORE = ATTinyCore
+BOARD_TAG = attinyx4
+BOARD_SUB = 84
+VARIANT = tinyX4
+F_CPU = 8000000L
+#BOARD_TAG = attinyx313
+#BOARD_SUB = 4313
+#BOARD_TAG = attinyx61
+#BOARD_SUB = 861
+#F_CPU = 8000000L
+
+# ------------------------------------------------------------------ #
+
+# https://github.com/Coding-Badly/TinyCore1 (1.5+)
+ALTERNATE_CORE = tiny
+BOARD_TAG = attiny85at8
+#BOARD_TAG = attiny2313at1
+
+# https://github.com/Coding-Badly/arduino-tiny (1.0)
+ALTERNATE_CORE = tiny
+BOARD_TAG = attiny85at8
+#BOARD_TAG = attiny44at8
+#BOARD_TAG = attiny84at8
+ARDUINO_VAR_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
+ARDUINO_CORE_PATH = $(HOME)/arduino/hardware/tiny/cores/tiny
+
+# ------------------------------------------------------------------ #
+
+# https://github.com/damellis/attiny (1.5+)
+ALTERNATE_CORE = attiny-master
+BOARD_TAG = attiny
+BOARD_SUB = attiny85
+F_CPU = 16000000L
+
+# https://github.com/damellis/attiny (1.0)
+ALTERNATE_CORE = attiny-master
+BOARD_TAG = attiny85
+#BOARD_TAG = attiny44-8
+#BOARD_TAG = attiny84-20
+
+# ------------------------------------------------------------------ #
+
+# Path to the Arduino Makefile
+include /usr/share/arduino/Arduino.mk
+
+# !!! Important. You have to use 'make ispload' when using an ISP.