mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Add Teensy to Wiring Blink example
This commit is contained in:
@ -1,33 +1,26 @@
|
|||||||
#
|
;
|
||||||
# Project Configuration File
|
; Project Configuration File
|
||||||
#
|
;
|
||||||
# A detailed documentation with the EXAMPLES is located here:
|
; A detailed documentation with the EXAMPLES is located here:
|
||||||
# http://docs.platformio.org/en/latest/projectconf.html
|
; http://docs.platformio.org/en/latest/projectconf.html
|
||||||
#
|
;
|
||||||
|
|
||||||
# A sign `#` at the beginning of the line indicates a comment
|
[env:autogen_uno]
|
||||||
# Comment lines are ignored.
|
|
||||||
|
|
||||||
# Simple and base environment
|
|
||||||
# [env:mybaseenv]
|
|
||||||
# platform = %INSTALLED_PLATFORM_NAME_HERE%
|
|
||||||
# framework =
|
|
||||||
# board =
|
|
||||||
#
|
|
||||||
# Automatic targets - enable auto-uploading
|
|
||||||
# targets = upload
|
|
||||||
|
|
||||||
[env:arduino_uno]
|
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
framework = arduino
|
framework = arduino
|
||||||
board = uno
|
board = uno
|
||||||
|
|
||||||
[env:LaunchPad_msp430g2553]
|
[env:autogen_teensy31]
|
||||||
|
platform = teensy
|
||||||
|
framework = arduino
|
||||||
|
board = teensy31
|
||||||
|
|
||||||
|
[env:autogen_lpmsp430g2553]
|
||||||
platform = timsp430
|
platform = timsp430
|
||||||
framework = energia
|
framework = energia
|
||||||
board = lpmsp430g2553
|
board = lpmsp430g2553
|
||||||
|
|
||||||
[env:LaunchPad_lm4f120h5qr]
|
[env:autogen_lptm4c1230c3pm]
|
||||||
platform = titiva
|
platform = titiva
|
||||||
framework = energia
|
framework = energia
|
||||||
board = lptm4c1230c3pm
|
board = lptm4c1230c3pm
|
||||||
|
@ -1,27 +1,19 @@
|
|||||||
/**
|
#ifdef ENERGIA
|
||||||
* Copyright (C) Ivan Kravets <me@ikravets.com>
|
#include "Energia.h"
|
||||||
* See LICENSE for details.
|
#else
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
Turns ON and OFF the Wiring compatible board LED,
|
|
||||||
with intervals of 1 second (1000 milliseconds)
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "Arduino.h"
|
#include "Arduino.h"
|
||||||
|
|
||||||
#ifndef LED_PIN
|
|
||||||
#define LED_PIN 13 // Most Arduino boards already have a LED attached to pin 13 on the board itself
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LED_PIN
|
||||||
|
// Most Arduino boards already have a LED attached to pin 13 on the board itself
|
||||||
|
#define LED_PIN 13
|
||||||
|
#endif
|
||||||
|
|
||||||
void setup()
|
void setup() {
|
||||||
{
|
|
||||||
pinMode(LED_PIN, OUTPUT); // set pin as output
|
pinMode(LED_PIN, OUTPUT); // set pin as output
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop() {
|
||||||
{
|
|
||||||
digitalWrite(LED_PIN, HIGH); // set the LED on
|
digitalWrite(LED_PIN, HIGH); // set the LED on
|
||||||
delay(1000); // wait for a second
|
delay(1000); // wait for a second
|
||||||
digitalWrite(LED_PIN, LOW); // set the LED off
|
digitalWrite(LED_PIN, LOW); // set the LED off
|
||||||
|
Reference in New Issue
Block a user