forked from platformio/platformio-core
Reorganise IDE examples
This commit is contained in:
1 parent
c254a3490c
commit
71890a34be
58 files changed
+701
-747
No files matched your search
@@ -0,0 +1,8 @@
|
||||
Qt Creator IDE Integration
|
||||
==========================
|
||||
|
||||
The detailed information and steps are described in the main documentation:
|
||||
`PlatformIO integration with Qt Creator <http://docs.platformio.org/en/latest/ide/qtcreator.html>`_.
|
||||
|
||||
.. image:: http://docs.platformio.org/en/latest/_static/ide-platformio-qtcreator-7.png
|
||||
:target: http://docs.platformio.org/en/latest/ide/qtcreator.html
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
Documentation: http://docs.platformio.org/en/latest/userguide/cmd_init.html
|
||||
|
||||
This directory is intended for the project specific (private) libraries.
|
||||
PlatformIO will compile them to static libraries and link to executable file.
|
||||
|
||||
The source code of each library should be placed in separate directory.
|
||||
For example, "lib/private_lib/[here are source files]".
|
||||
@@ -17,7 +17,8 @@
|
||||
# Automatic targets - enable auto-uploading
|
||||
# targets = upload
|
||||
|
||||
[env:arduino_uno]
|
||||
[env:uno]
|
||||
platform = atmelavr
|
||||
framework = arduino
|
||||
board = uno
|
||||
board = uno
|
||||
# targets = upload
|
||||
@@ -2,15 +2,22 @@ win32 {
|
||||
HOMEDIR += $$(USERPROFILE)
|
||||
}
|
||||
else {
|
||||
HOMEDIR += $$(PWD)
|
||||
HOMEDIR += $$(HOME)
|
||||
}
|
||||
|
||||
INCLUDEPATH += "$$HOMEDIR/.platformio/packages/framework-arduinoavr/cores/arduino"
|
||||
INCLUDEPATH += "$$HOMEDIR/.platformio/packages/toolchain-atmelavr/avr/include"
|
||||
INCLUDEPATH += "$${HOMEDIR}/.platformio/packages/framework-arduinoavr/variants/standard"
|
||||
INCLUDEPATH += "$${HOMEDIR}/.platformio/packages/framework-arduinoavr/cores/arduino"
|
||||
INCLUDEPATH += "$${HOMEDIR}/.platformio/packages/toolchain-atmelavr/avr/include"
|
||||
INCLUDEPATH += "$${HOMEDIR}/.platformio/packages/toolchain-atmelavr/bfd/include"
|
||||
INCLUDEPATH += "$${HOMEDIR}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/4.8.1/include"
|
||||
INCLUDEPATH += "$${HOMEDIR}/.platformio/packages/toolchain-atmelavr/lib/gcc/avr/4.8.1/include-fixed"
|
||||
|
||||
win32:INCLUDEPATH ~= s,/,\\,g
|
||||
|
||||
# DEFINES += __AVR_ATmega328__
|
||||
DEFINES += "F_CPU=16000000L"
|
||||
DEFINES += "ARDUINO_ARCH_AVR"
|
||||
DEFINES += "ARDUINO_AVR_UNO"
|
||||
DEFINES += "ARDUINO=10605"
|
||||
DEFINES += "PLATFORMIO=020300"
|
||||
DEFINES += "__AVR_ATmega328P__"
|
||||
|
||||
OTHER_FILES += \
|
||||
platformio.ini
|
||||
|
||||
@@ -1,25 +1,15 @@
|
||||
#include "Arduino.h"
|
||||
/*
|
||||
Blink
|
||||
Turns on an LED on for one second, then off for one second, repeatedly.
|
||||
|
||||
This example code is in the public domain.
|
||||
*/
|
||||
|
||||
int led = 1; // blink 'digital' pin 1 - AKA the built in red LED
|
||||
|
||||
// the setup routine runs once when you press reset:
|
||||
// Most Arduino boards already have a LED attached to pin 13 on the board itself
|
||||
#define LED_PIN 13
|
||||
|
||||
void setup() {
|
||||
// initialize the digital pin as an output.
|
||||
pinMode(led, OUTPUT);
|
||||
|
||||
pinMode(LED_PIN, OUTPUT); // set pin as output
|
||||
}
|
||||
|
||||
// the loop routine runs over and over again forever:
|
||||
void loop() {
|
||||
digitalWrite(led, HIGH);
|
||||
delay(1000);
|
||||
digitalWrite(led, LOW);
|
||||
delay(1000);
|
||||
digitalWrite(LED_PIN, HIGH); // set the LED on
|
||||
delay(1000); // wait for a second
|
||||
digitalWrite(LED_PIN, LOW); // set the LED off
|
||||
delay(1000); // wait for a second
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user