Use Platformio to take the place of Arduino

  1. Set up a python2 environment
cd your_project_path
sudo pip install pipenv
sudo pipenv --python 2.7
sudo pipenv install platformio
sudo pipenv shell
  1. Find out your board name id
platformio boards your_board_name

https://platformio.org/boards
http://docs.platformio.org/en/latest/quickstart.html

  1. Initialize your project
    If you got an uno board, you just have to run this: platformio init --board uno

  2. Writing codes

mkdir src
cd src

Write the following codes into main.cpp:

#include "Arduino.h"

void setup() {
}

void loop() {
}
  1. Run or Upload as you like
    Build your project: platformio run
    Upload your codes into board: platformio run --target upload
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容