diff options
| author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-07-02 17:28:54 -0400 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-07-09 21:42:05 +0530 |
| commit | df88db2cfbb1635b96c05f78b8c0057c5fbaf83a (patch) | |
| tree | f22a62283bdb1422cd42db48d025e5fbc21900c7 /examples/BlinkChipKIT/BlinkChipKIT.pde | |
| parent | e77df36522f3a973c52c69e1dfda27c94d71d0e4 (diff) | |
Add support for the Digilent chipKIT platform
This commit modifies a few things in Arduino.mk to be able to support
overriding the necessary configuration options to support the chipKIT build,
and also includes an example sketch configured to build for the Max32 platform.
In addition the following changes were done as well
- Control C standard with a CFLAGS_STD flag, GNU99 by default.
- Duplicate show_config_variable in each sub-makefile.
- Remove redundant output of ARDUINO_PREFERENCES_PATH from config table.
- Defer Priting ARDMK_DIR until Arduino.mk.
- Define names of compiler tools earlier to use for path checking.
Duplicating show_config_variable is unfortunate because the code is duplicated,
but I don't see a good way around it since we need to dupliacate the check
for ARDMK_DIR before we can find Common.mk.
Fix #98
Diffstat (limited to 'examples/BlinkChipKIT/BlinkChipKIT.pde')
| -rw-r--r-- | examples/BlinkChipKIT/BlinkChipKIT.pde | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/BlinkChipKIT/BlinkChipKIT.pde b/examples/BlinkChipKIT/BlinkChipKIT.pde new file mode 100644 index 0000000..1953c39 --- /dev/null +++ b/examples/BlinkChipKIT/BlinkChipKIT.pde @@ -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 +} |
