Reorganise IDE examples

This commit is contained in:
Ivan Kravets committed 2015-09-04 23:48:57 +03:00
1 parent c254a3490c
commit 71890a34be
58 files changed
+701 -747

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
Sublime Text Integration
========================
The detailed information and steps are described in the main documentation:
`PlatformIO integration with Sublime Text <http://docs.platformio.org/en/latest/ide/sublimetext.html>`_.
.. image:: http://docs.platformio.org/en/latest/_images/ide-sublime-text-platformio-newproject-5.png
:target: http://docs.platformio.org/en/latest/ide/sublimetext.html
+8
View File
@@ -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]".
+24
View File
@@ -0,0 +1,24 @@
#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#
# A sign `#` at the beginning of the line indicates a comment
# 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:leonardo]
platform = atmelavr
framework = arduino
board = leonardo
# targets = upload
@@ -0,0 +1,46 @@
{
"build_systems":
[
{
"cmd":
[
"platformio",
"-f", "-c", "sublimetext",
"run"
],
"name": "PlatformIO",
"variants":
[
{
"cmd":
[
"platformio",
"-f", "-c", "sublimetext",
"run",
"--target",
"clean"
],
"name": "Clean"
},
{
"cmd":
[
"platformio",
"-f", "-c", "sublimetext",
"run",
"--target",
"upload"
],
"name": "Upload"
}
],
"working_dir": "${project_path:${folder}}"
}
],
"folders":
[
{
"path": "."
}
]
}
+13
View File
@@ -0,0 +1,13 @@
// Most Arduino boards already have a LED attached to pin 13 on the board itself
#define LED_PIN 13
void setup() {
pinMode(LED_PIN, OUTPUT); // set pin as output
}
void loop() {
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
}