diff --git a/examples/atmelavr-and-arduino/arduino-external-libs/src/pcdtest.cpp b/examples/atmelavr-and-arduino/arduino-external-libs/src/pcdtest.cpp new file mode 100644 index 00000000..22d790bd --- /dev/null +++ b/examples/atmelavr-and-arduino/arduino-external-libs/src/pcdtest.cpp @@ -0,0 +1,382 @@ +#include +#include +#include +#include + +void setup(); + + +void loop(); + + +void testdrawbitmap(const uint8_t *bitmap, uint8_t w, uint8_t h); + + +void testdrawchar(void); + +void testdrawcircle(void); + +void testfillrect(void); + +void testdrawtriangle(void); + +void testfilltriangle(void); + +void testdrawroundrect(void); + +void testfillroundrect(void); + +void testdrawrect(void); + +void testdrawline(); +#line 1 "pcdtest.ino" +/********************************************************************* +This is an example sketch for our Monochrome Nokia 5110 LCD Displays + + Pick one up today in the adafruit shop! + ------> http://www.adafruit.com/products/338 + +These displays use SPI to communicate, 4 or 5 pins are required to +interface + +Adafruit invests time and resources providing this open source code, +please support Adafruit and open-source hardware by purchasing +products from Adafruit! + +Written by Limor Fried/Ladyada for Adafruit Industries. +BSD license, check license.txt for more information +All text above, and the splash screen must be included in any redistribution +*********************************************************************/ + +//#include +//#include +//#include + +// Software SPI (slower updates, more flexible pin options): +// pin 7 - Serial clock out (SCLK) +// pin 6 - Serial data out (DIN) +// pin 5 - Data/Command select (D/C) +// pin 4 - LCD chip select (CS) +// pin 3 - LCD reset (RST) +Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3); + +// Hardware SPI (faster, but must use certain hardware pins): +// SCK is LCD serial clock (SCLK) - this is pin 13 on Arduino Uno +// MOSI is LCD DIN - this is pin 11 on an Arduino Uno +// pin 5 - Data/Command select (D/C) +// pin 4 - LCD chip select (CS) +// pin 3 - LCD reset (RST) +// Adafruit_PCD8544 display = Adafruit_PCD8544(5, 4, 3); +// Note with hardware SPI MISO and SS pins aren't used but will still be read +// and written to during SPI transfer. Be careful sharing these pins! + +#define NUMFLAKES 10 +#define XPOS 0 +#define YPOS 1 +#define DELTAY 2 + + +#define LOGO16_GLCD_HEIGHT 16 +#define LOGO16_GLCD_WIDTH 16 + +static const unsigned char PROGMEM logo16_glcd_bmp[] = +{ B00000000, B11000000, + B00000001, B11000000, + B00000001, B11000000, + B00000011, B11100000, + B11110011, B11100000, + B11111110, B11111000, + B01111110, B11111111, + B00110011, B10011111, + B00011111, B11111100, + B00001101, B01110000, + B00011011, B10100000, + B00111111, B11100000, + B00111111, B11110000, + B01111100, B11110000, + B01110000, B01110000, + B00000000, B00110000 }; + +void setup() { + Serial.begin(9600); + + display.begin(); + // init done + + // you can change the contrast around to adapt the display + // for the best viewing! + display.setContrast(50); + + display.display(); // show splashscreen + delay(2000); + display.clearDisplay(); // clears the screen and buffer + + // draw a single pixel + display.drawPixel(10, 10, BLACK); + display.display(); + delay(2000); + display.clearDisplay(); + + // draw many lines + testdrawline(); + display.display(); + delay(2000); + display.clearDisplay(); + + // draw rectangles + testdrawrect(); + display.display(); + delay(2000); + display.clearDisplay(); + + // draw multiple rectangles + testfillrect(); + display.display(); + delay(2000); + display.clearDisplay(); + + // draw mulitple circles + testdrawcircle(); + display.display(); + delay(2000); + display.clearDisplay(); + + // draw a circle, 10 pixel radius + display.fillCircle(display.width()/2, display.height()/2, 10, BLACK); + display.display(); + delay(2000); + display.clearDisplay(); + + testdrawroundrect(); + delay(2000); + display.clearDisplay(); + + testfillroundrect(); + delay(2000); + display.clearDisplay(); + + testdrawtriangle(); + delay(2000); + display.clearDisplay(); + + testfilltriangle(); + delay(2000); + display.clearDisplay(); + + // draw the first ~12 characters in the font + testdrawchar(); + display.display(); + delay(2000); + display.clearDisplay(); + + // text display tests + display.setTextSize(1); + display.setTextColor(BLACK); + display.setCursor(0,0); + display.println("Hello, world!"); + display.setTextColor(WHITE, BLACK); // 'inverted' text + display.println(3.141592); + display.setTextSize(2); + display.setTextColor(BLACK); + display.print("0x"); display.println(0xDEADBEEF, HEX); + display.display(); + delay(2000); + + // rotation example + display.clearDisplay(); + display.setRotation(1); // rotate 90 degrees counter clockwise, can also use values of 2 and 3 to go further. + display.setTextSize(1); + display.setTextColor(BLACK); + display.setCursor(0,0); + display.println("Rotation"); + display.setTextSize(2); + display.println("Example!"); + display.display(); + delay(2000); + + // revert back to no rotation + display.setRotation(0); + + // miniature bitmap display + display.clearDisplay(); + display.drawBitmap(30, 16, logo16_glcd_bmp, 16, 16, 1); + display.display(); + + // invert the display + display.invertDisplay(true); + delay(1000); + display.invertDisplay(false); + delay(1000); + + // draw a bitmap icon and 'animate' movement + testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_WIDTH, LOGO16_GLCD_HEIGHT); +} + + +void loop() { + +} + + +void testdrawbitmap(const uint8_t *bitmap, uint8_t w, uint8_t h) { + uint8_t icons[NUMFLAKES][3]; + srandom(666); // whatever seed + + // initialize + for (uint8_t f=0; f< NUMFLAKES; f++) { + icons[f][XPOS] = random() % display.width(); + icons[f][YPOS] = 0; + icons[f][DELTAY] = random() % 5 + 1; + + Serial.print("x: "); + Serial.print(icons[f][XPOS], DEC); + Serial.print(" y: "); + Serial.print(icons[f][YPOS], DEC); + Serial.print(" dy: "); + Serial.println(icons[f][DELTAY], DEC); + } + + while (1) { + // draw each icon + for (uint8_t f=0; f< NUMFLAKES; f++) { + display.drawBitmap(icons[f][XPOS], icons[f][YPOS], logo16_glcd_bmp, w, h, BLACK); + } + display.display(); + delay(200); + + // then erase it + move it + for (uint8_t f=0; f< NUMFLAKES; f++) { + display.drawBitmap(icons[f][XPOS], icons[f][YPOS], logo16_glcd_bmp, w, h, WHITE); + // move it + icons[f][YPOS] += icons[f][DELTAY]; + // if its gone, reinit + if (icons[f][YPOS] > display.height()) { + icons[f][XPOS] = random() % display.width(); + icons[f][YPOS] = 0; + icons[f][DELTAY] = random() % 5 + 1; + } + } + } +} + + +void testdrawchar(void) { + display.setTextSize(1); + display.setTextColor(BLACK); + display.setCursor(0,0); + + for (uint8_t i=0; i < 168; i++) { + if (i == '\n') continue; + display.write(i); + //if ((i > 0) && (i % 14 == 0)) + //display.println(); + } + display.display(); +} + +void testdrawcircle(void) { + for (int16_t i=0; i0; i-=5) { + display.fillTriangle(display.width()/2, display.height()/2-i, + display.width()/2-i, display.height()/2+i, + display.width()/2+i, display.height()/2+i, color); + if (color == WHITE) color = BLACK; + else color = WHITE; + display.display(); + } +} + +void testdrawroundrect(void) { + for (int16_t i=0; i=0; i-=4) { + display.drawLine(0, display.height()-1, display.width()-1, i, BLACK); + display.display(); + } + delay(250); + + display.clearDisplay(); + for (int16_t i=display.width()-1; i>=0; i-=4) { + display.drawLine(display.width()-1, display.height()-1, i, 0, BLACK); + display.display(); + } + for (int16_t i=display.height()-1; i>=0; i-=4) { + display.drawLine(display.width()-1, display.height()-1, 0, i, BLACK); + display.display(); + } + delay(250); + + display.clearDisplay(); + for (int16_t i=0; i`_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: + +.. code-block:: bash + + # Change directory to example + > cd platformio-develop/examples/stm32/stm32-cmsis-blink + + # Process example project + > platformio run + + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/stm32/stm32-cmsis-blink/platformio.ini b/examples/stm32/stm32-cmsis-blink/platformio.ini index efef491a..c90f099e 100644 --- a/examples/stm32/stm32-cmsis-blink/platformio.ini +++ b/examples/stm32/stm32-cmsis-blink/platformio.ini @@ -17,9 +17,17 @@ # Automatic targets - enable auto-uploading # targets = upload -[env:stm32] +[env:stm32f4discovery] +platform = stm32 +framework = cmsis +board = stm32f4discovery + +[env:stm32ldiscovery] platform = stm32 framework = cmsis board = stm32ldiscovery -# targets = upload +[env:stm32f3discovery] +platform = stm32 +framework = cmsis +board = stm32f3discovery diff --git a/examples/stm32/stm32-cmsis-blink/src/main.c b/examples/stm32/stm32-cmsis-blink/src/main.c index 91099736..349544b4 100644 --- a/examples/stm32/stm32-cmsis-blink/src/main.c +++ b/examples/stm32/stm32-cmsis-blink/src/main.c @@ -1,4 +1,12 @@ +#ifdef STM32L1 #include "stm32l1xx.h" +#else +#ifdef STM32F3 +#include "stm32f30x.h" +#else +#include "stm32f4xx.h" +#endif +#endif void ms_delay(int ms) { @@ -9,7 +17,6 @@ void ms_delay(int ms) } } - //Alternates blue and green LEDs quickly int main(void) { @@ -21,7 +28,7 @@ int main(void) for (;;) { ms_delay(100); - GPIOB->ODR ^= (1 << 6); // Toggle the pin - GPIOB->ODR ^= (1 << 7); // Toggle the pin + GPIOB->ODR ^= (1 << 6); // Toggle the pin + GPIOB->ODR ^= (1 << 7); // Toggle the pin } } \ No newline at end of file diff --git a/examples/stm32/stm32-opencm3-blink/README.rst b/examples/stm32/stm32-opencm3-blink/README.rst new file mode 100644 index 00000000..579fdcab --- /dev/null +++ b/examples/stm32/stm32-opencm3-blink/README.rst @@ -0,0 +1,21 @@ +How to buid PlatformIO based project +==================================== + +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: + +.. code-block:: bash + + # Change directory to example + > cd platformio-develop/examples/stm32/stm32-opencm3-blink + + # Process example project + > platformio run + + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/stm32/stm32-opencm3-blink/platformio.ini b/examples/stm32/stm32-opencm3-blink/platformio.ini index 99b1efc4..3c472f00 100644 --- a/examples/stm32/stm32-opencm3-blink/platformio.ini +++ b/examples/stm32/stm32-opencm3-blink/platformio.ini @@ -17,9 +17,17 @@ # Automatic targets - enable auto-uploading # targets = upload -[env:stm32] +[env:stm32f4discovery] platform = stm32 -board = stm32ldiscovery framework = opencm3 +board = stm32f4discovery -# targets = upload +[env:stm32ldiscovery] +platform = stm32 +framework = opencm3 +board = stm32ldiscovery + +[env:stm32f3discovery] +platform = stm32 +framework = opencm3 +board = stm32f3discovery diff --git a/examples/stm32/stm32-spl-blink/README.rst b/examples/stm32/stm32-spl-blink/README.rst new file mode 100644 index 00000000..72a568be --- /dev/null +++ b/examples/stm32/stm32-spl-blink/README.rst @@ -0,0 +1,21 @@ +How to buid PlatformIO based project +==================================== + +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: + +.. code-block:: bash + + # Change directory to example + > cd platformio-develop/examples/stm32/stm32-spl-blink + + # Process example project + > platformio run + + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/stm32/stm32-spl-blink/platformio.ini b/examples/stm32/stm32-spl-blink/platformio.ini index 2ebdb20f..6ba5b0c1 100644 --- a/examples/stm32/stm32-spl-blink/platformio.ini +++ b/examples/stm32/stm32-spl-blink/platformio.ini @@ -17,9 +17,17 @@ # Automatic targets - enable auto-uploading # targets = upload -[env:stm32] +[env:stm32f4discovery] +platform = stm32 +framework = cmsis,spl +board = stm32f4discovery + +[env:stm32ldiscovery] platform = stm32 framework = cmsis,spl board = stm32ldiscovery -# targets = upload +[env:stm32f3discovery] +platform = stm32 +framework = cmsis,spl +board = stm32f3discovery diff --git a/examples/stm32/stm32-spl-blink/src/main.c b/examples/stm32/stm32-spl-blink/src/main.c index e73ae4f2..ce55f4ef 100644 --- a/examples/stm32/stm32-spl-blink/src/main.c +++ b/examples/stm32/stm32-spl-blink/src/main.c @@ -1,6 +1,17 @@ +#ifdef STM32L1 #include #include #include +#else +#ifdef STM32F3 +#include +#include +#else +#include +#include +#include +#endif +#endif /* timing is not guaranteed :) */ void simple_delay(uint32_t us) diff --git a/examples/timsp430/timsp430-energia-blink/README.rst b/examples/timsp430/timsp430-energia-blink/README.rst new file mode 100644 index 00000000..67c8f443 --- /dev/null +++ b/examples/timsp430/timsp430-energia-blink/README.rst @@ -0,0 +1,21 @@ +How to buid PlatformIO based project +==================================== + +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: + +.. code-block:: bash + + # Change directory to example + > cd platformio-develop/examples/timsp430/timsp430-energia-blink + + # Process example project + > platformio run + + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/timsp430/timsp430-energia-blink/platformio.ini b/examples/timsp430/timsp430-energia-blink/platformio.ini new file mode 100644 index 00000000..0b536946 --- /dev/null +++ b/examples/timsp430/timsp430-energia-blink/platformio.ini @@ -0,0 +1,38 @@ +# +# 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:LaunchPad_msp430f5529] +platform = timsp430 +framework = energia +board = lpmsp430f5529 + +[env:LaunchPad_msp430fr5739] +platform = timsp430 +framework = energia +board = lpmsp430fr5739 + +[env:LaunchPad_msp430fr5969] +platform = timsp430 +framework = energia +board = lpmsp430fr5969 + +[env:LaunchPad_msp430g2553] +platform = timsp430 +framework = energia +board = lpmsp430g2553 diff --git a/examples/timsp430/timsp430-energia-blink/src/main.cpp b/examples/timsp430/timsp430-energia-blink/src/main.cpp new file mode 100644 index 00000000..79a0de6d --- /dev/null +++ b/examples/timsp430/timsp430-energia-blink/src/main.cpp @@ -0,0 +1,19 @@ +/** + * Copyright (C) Ivan Kravets + * See LICENSE for details. + */ + +#include "Energia.h" + +void setup() +{ + pinMode(RED_LED, OUTPUT); // set pin as output +} + +void loop() +{ + digitalWrite(RED_LED, HIGH); // set the LED on + delay(1000); // wait for a second + digitalWrite(RED_LED, LOW); // set the LED off + delay(1000); // wait for a second +} diff --git a/examples/timsp430/timsp430-native-blink/README.rst b/examples/timsp430/timsp430-native-blink/README.rst index a522f49f..341ecf7e 100644 --- a/examples/timsp430/timsp430-native-blink/README.rst +++ b/examples/timsp430/timsp430-native-blink/README.rst @@ -1,20 +1,21 @@ -TI MSP430: Native Blink Example -=============================== +How to buid PlatformIO based project +==================================== -1. Download ``platformio`` - `sources `_ -2. Extract ZIP archive -3. Then run these commands: +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: .. code-block:: bash # Change directory to example - $ cd platformio-develop/examples/timsp430-native-blink/ - - # Install TI MSP430 development platform - $ platformio install timsp430 + > cd platformio-develop/examples/timsp430/timsp430-native-blink # Process example project - $ platformio run + > platformio run -.. image:: console-result.png + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/timsp430/timsp430-native-blink/console-result.png b/examples/timsp430/timsp430-native-blink/console-result.png deleted file mode 100644 index c658dcd0..00000000 Binary files a/examples/timsp430/timsp430-native-blink/console-result.png and /dev/null differ diff --git a/examples/timsp430/timsp430-native-blink/platformio.ini b/examples/timsp430/timsp430-native-blink/platformio.ini index 4a112a96..bc6926ea 100644 --- a/examples/timsp430/timsp430-native-blink/platformio.ini +++ b/examples/timsp430/timsp430-native-blink/platformio.ini @@ -17,11 +17,7 @@ # Automatic targets - enable auto-uploading # targets = upload -[env:launchpad_msp430g2] +[env:LaunchPad_msp430g2553] platform = timsp430 board_mcu = msp430g2553 board_f_cpu = 16000000L - -upload_protocol = rf2500 - -# targets = upload diff --git a/examples/titiva/titiva-energia-blink/README.rst b/examples/titiva/titiva-energia-blink/README.rst new file mode 100644 index 00000000..e8b4caaf --- /dev/null +++ b/examples/titiva/titiva-energia-blink/README.rst @@ -0,0 +1,21 @@ +How to buid PlatformIO based project +==================================== + +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: + +.. code-block:: bash + + # Change directory to example + > cd platformio-develop/examples/titiva/titiva-energia-blink + + # Process example project + > platformio run + + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/titiva/titiva-energia-blink/platformio.ini b/examples/titiva/titiva-energia-blink/platformio.ini index 71664f3f..4da3a335 100644 --- a/examples/titiva/titiva-energia-blink/platformio.ini +++ b/examples/titiva/titiva-energia-blink/platformio.ini @@ -17,9 +17,17 @@ # Automatic targets - enable auto-uploading # targets = upload -[env:launchpad_tm4c1230c3pm] +[env:LaunchPad_lm4f120h5qr] +platform = titiva +framework = energia +board = lplm4f120h5qr + +[env:LaunchPad_tm4c1230c3pm] platform = titiva framework = energia board = lptm4c1230c3pm -# targets = upload +[env:LaunchPad_tm4c1294ncpdt] +platform = titiva +framework = energia +board = lptm4c1294ncpdt diff --git a/examples/titiva/titiva-native-blink/README.rst b/examples/titiva/titiva-native-blink/README.rst index 9f676e17..52e59f63 100644 --- a/examples/titiva/titiva-native-blink/README.rst +++ b/examples/titiva/titiva-native-blink/README.rst @@ -1,20 +1,21 @@ -TI TIVA C ARM Cortex-M4: Native Blink Example -============================================= +How to buid PlatformIO based project +==================================== -1. Download ``platformio`` - `sources `_ -2. Extract ZIP archive -3. Then run these commands: +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: .. code-block:: bash # Change directory to example - $ cd platformio-develop/examples/titiva-native-blink/ - - # Install TI TIVA development platform - $ platformio install titiva + > cd platformio-develop/examples/titiva/titiva-native-blink # Process example project - $ platformio run + > platformio run -.. image:: console-result.png + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/titiva/titiva-native-blink/console-result.png b/examples/titiva/titiva-native-blink/console-result.png deleted file mode 100644 index 4b9ff484..00000000 Binary files a/examples/titiva/titiva-native-blink/console-result.png and /dev/null differ diff --git a/examples/titiva/titiva-native-blink/platformio.ini b/examples/titiva/titiva-native-blink/platformio.ini index 3dfecf6a..4da3a335 100644 --- a/examples/titiva/titiva-native-blink/platformio.ini +++ b/examples/titiva/titiva-native-blink/platformio.ini @@ -17,9 +17,17 @@ # Automatic targets - enable auto-uploading # targets = upload -[env:launchpad_lm4f120] +[env:LaunchPad_lm4f120h5qr] platform = titiva framework = energia board = lplm4f120h5qr -# targets = upload +[env:LaunchPad_tm4c1230c3pm] +platform = titiva +framework = energia +board = lptm4c1230c3pm + +[env:LaunchPad_tm4c1294ncpdt] +platform = titiva +framework = energia +board = lptm4c1294ncpdt diff --git a/examples/titiva/titiva-opencm3-blink/README.rst b/examples/titiva/titiva-opencm3-blink/README.rst new file mode 100644 index 00000000..d98ff383 --- /dev/null +++ b/examples/titiva/titiva-opencm3-blink/README.rst @@ -0,0 +1,21 @@ +How to buid PlatformIO based project +==================================== + +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: + +.. code-block:: bash + + # Change directory to example + > cd platformio-develop/examples/titiva/titiva-opencm3-blink + + # Process example project + > platformio run + + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/titiva/titiva-opencm3-blink/platformio.ini b/examples/titiva/titiva-opencm3-blink/platformio.ini index e42f2835..67df2d05 100644 --- a/examples/titiva/titiva-opencm3-blink/platformio.ini +++ b/examples/titiva/titiva-opencm3-blink/platformio.ini @@ -17,9 +17,17 @@ # Automatic targets - enable auto-uploading # targets = upload -[env:launchpad_lm4f120] +[env:LaunchPad_lm4f120h5qr] platform = titiva framework = opencm3 board = lplm4f120h5qr -# targets = upload +[env:LaunchPad_tm4c1230c3pm] +platform = titiva +framework = opencm3 +board = lptm4c1230c3pm + +[env:LaunchPad_tm4c1294ncpdt] +platform = titiva +framework = opencm3 +board = lptm4c1294ncpdt diff --git a/examples/wiring-blink/README.rst b/examples/wiring-blink/README.rst index 17e78fd2..551f4d73 100644 --- a/examples/wiring-blink/README.rst +++ b/examples/wiring-blink/README.rst @@ -1,22 +1,21 @@ -Wiring Framework (Arduino + Energia) Blink Example -================================================== +How to buid PlatformIO based project +==================================== -1. Download ``platformio`` - `sources `_ -2. Extract ZIP archive -3. Then run these commands: +1. `Install PlatformIO `_ +2. Download `source code with examples `_ +3. Extract ZIP archive +4. Run these commands: .. code-block:: bash # Change directory to example - $ cd platformio-develop/examples/wiring-blink/ - - # Install Atmel AVR development platform with Arduino Framework - # Install TI MSP430 development platform with Energia Framework - # Install TI TIVA development platform with Energia Framework - $ platformio install atmelavr timsp430 titiva + > cd platformio-develop/examples/wiring-blink # Process example project - $ platformio run + > platformio run -.. image:: console-result.png + # Upload firmware + > platformio run --target upload + + # Clean build files + > platformio run --target clean diff --git a/examples/wiring-blink/console-result.png b/examples/wiring-blink/console-result.png deleted file mode 100644 index bf22625f..00000000 Binary files a/examples/wiring-blink/console-result.png and /dev/null differ diff --git a/examples/wiring-blink/platformio.ini b/examples/wiring-blink/platformio.ini index bb47ffe5..235f344c 100644 --- a/examples/wiring-blink/platformio.ini +++ b/examples/wiring-blink/platformio.ini @@ -22,19 +22,13 @@ platform = atmelavr framework = arduino board = uno -# targets = upload - -[env:launchpad_msp430g2] +[env:LaunchPad_msp430g2553] platform = timsp430 framework = energia board = lpmsp430g2553 -# targets = upload - -[env:launchpad_tm4c1230c3pm] +[env:LaunchPad_lm4f120h5qr] platform = titiva framework = energia board = lptm4c1230c3pm build_flags = -DLED_PIN=GREEN_LED - -# targets = upload