Showing posts with label PlatformIO. Show all posts
Showing posts with label PlatformIO. Show all posts

Tuesday, 8 May 2018

PlatformIO Daily Use Practice


(1) Start a new project
             $ platformio init --board uno --board nanoatmega328

If you need to add new board to the existing project please use platformio init again with all boards included.

(2) compile
Just compile:
             $platformio run
or
             $platformio run -e nanoatmega328

(3) flash/upload
             $platformio run -e nanoatmega328 -t upload
The awesome thing about this is that, even if using a CP2102 TTL to USB, it works perfectly.

(4) more...


ref:
http://docs.platformio.org/en/latest/quickstart.html

Sunday, 7 January 2018

platformio ImportError: cannot import name LockFile


sudo apt-get purge python-lockfile
sudo pip install -U platformio


ref:
https://github.com/platformio/platformio-atom-ide/issues/48  *****
https://github.com/platformio/platformio-core/issues/360
https://github.com/platformio/platformio-core/issues/252