diff --git a/examples/ide/sublime-text/platformio.ini b/examples/ide/sublime-text/platformio.ini new file mode 100644 index 00000000..785c3eda --- /dev/null +++ b/examples/ide/sublime-text/platformio.ini @@ -0,0 +1,23 @@ +# +# 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:flora8] +platform = atmelavr +framework = arduino +board = flora8 diff --git a/examples/ide/sublime-text/platformio.sublime-project b/examples/ide/sublime-text/platformio.sublime-project new file mode 100644 index 00000000..5c1efaa3 --- /dev/null +++ b/examples/ide/sublime-text/platformio.sublime-project @@ -0,0 +1,21 @@ +{ + "build_systems": + [ + { + "name": "PlatformIO", + "cmd": ["platformio", "run"], + "working_dir": "${project_path:${folder}}", + "variants": + [ + { + "name": "Clean", + "cmd": ["platformio", "run", "-t", "clean"] + }, + { + "name": "Upload", + "cmd": ["platformio", "run", "-t", "upload"] + } + ] + } + ] +} diff --git a/examples/ide/sublime-text/src/Blink.pde b/examples/ide/sublime-text/src/Blink.pde new file mode 100644 index 00000000..a4282d6b --- /dev/null +++ b/examples/ide/sublime-text/src/Blink.pde @@ -0,0 +1,24 @@ +/* + 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: +void setup() { + // initialize the digital pin as an output. + pinMode(led, OUTPUT); + +} + +// the loop routine runs over and over again forever: +void loop() { + digitalWrite(led, HIGH); + delay(1000); + digitalWrite(led, LOW); + delay(1000); +} + diff --git a/examples/ide/visual-studio/blink.vcxproj b/examples/ide/visual-studio/blink.vcxproj new file mode 100644 index 00000000..1bef37cb --- /dev/null +++ b/examples/ide/visual-studio/blink.vcxproj @@ -0,0 +1,62 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {0FA9C3A8-452B-41EF-A418-9102B170F49F} + MakeFileProj + + + + Makefile + true + v120 + + + Makefile + false + v120 + + + + + + + + + + + + + platformio run + platformio run -t clean + WIN32;_DEBUG;$(NMakePreprocessorDefinitions) + $(HOMEDRIVE)$(HOMEPATH)\.platformio\packages\toolchain-atmelavr\avr\include;$(HOMEDRIVE)$(HOMEPATH)\.platformio\packages\framework-arduinoavr\cores\arduino;$(NMakeIncludeSearchPath) + + + platformio run + platformio run -t clean + WIN32;NDEBUG;$(NMakePreprocessorDefinitions) + $(HOMEDRIVE)$(HOMEPATH)\.platformio\packages\toolchain-atmelavr\avr\include;$(HOMEDRIVE)$(HOMEPATH)\.platformio\packages\framework-arduinoavr\cores\arduino;$(NMakeIncludeSearchPath) + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/ide/visual-studio/blink.vcxproj.filters b/examples/ide/visual-studio/blink.vcxproj.filters new file mode 100644 index 00000000..87bc92f6 --- /dev/null +++ b/examples/ide/visual-studio/blink.vcxproj.filters @@ -0,0 +1,29 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {cad450ef-1a84-42d4-a5b5-a1736b8833d3} + + + + + + + + + Source Files\src + + + \ No newline at end of file diff --git a/examples/ide/visual-studio/platformio.ini b/examples/ide/visual-studio/platformio.ini new file mode 100644 index 00000000..b79bfb2d --- /dev/null +++ b/examples/ide/visual-studio/platformio.ini @@ -0,0 +1,23 @@ +# +# 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:arduino_uno] +platform = atmelavr +framework = arduino +board = uno \ No newline at end of file diff --git a/examples/ide/visual-studio/src/blink.pde b/examples/ide/visual-studio/src/blink.pde new file mode 100644 index 00000000..a4282d6b --- /dev/null +++ b/examples/ide/visual-studio/src/blink.pde @@ -0,0 +1,24 @@ +/* + 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: +void setup() { + // initialize the digital pin as an output. + pinMode(led, OUTPUT); + +} + +// the loop routine runs over and over again forever: +void loop() { + digitalWrite(led, HIGH); + delay(1000); + digitalWrite(led, LOW); + delay(1000); +} +