diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/DueBlink/DueBlink.ino | 19 | ||||
| -rw-r--r-- | examples/DueBlink/Makefile | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/examples/DueBlink/DueBlink.ino b/examples/DueBlink/DueBlink.ino new file mode 100644 index 0000000..f9a59a9 --- /dev/null +++ b/examples/DueBlink/DueBlink.ino @@ -0,0 +1,19 @@ +/* + Blink + Turns on an LED on for one second, then off for one second, repeatedly. + + This example code is in the public domain. + */ + +void setup() { + // initialize the digital pin as an output. + // Pin 13 has an LED connected on most Arduino boards: + pinMode(13, OUTPUT); +} + +void loop() { + digitalWrite(13, HIGH); // set the LED on + delay(1000); // wait for a second + digitalWrite(13, LOW); // set the LED off + delay(1000); // wait for a second +} diff --git a/examples/DueBlink/Makefile b/examples/DueBlink/Makefile new file mode 100644 index 0000000..8a7ad6e --- /dev/null +++ b/examples/DueBlink/Makefile @@ -0,0 +1,19 @@ +# Arduino Due uses SAM3X8E SAM chip +BOARD_TAG = arduino_due_x +ARCHITECTURE = sam + +# Define ARM toolchain dir if not using Arduino supplied +#ARM_TOOLS_DIR = /usr + +# Define AVR toolchain dir if not using Arduino supplied and using native port +#AVR_TOOLS_DIR = /usr + +# Define Arduino support package installation path where SAM device support has been installed +# Linux +#ARDUINO_PACKAGE_DIR := $(HOME)/.arduino15/packages +# macOS +#ARDUINO_PACKAGE_DIR := $(HOME)/Library/Arduino15/packages +# Windows +#ARDUINO_PACKAGE_DIR := "C:/Users/$(USER)/AppData/Local/Arduino15/packages" + +include ../../Sam.mk |
