Platformio/platformio-vscode-ide Can Build

Manage Two Arduinos with Ease Using PlatformIO

Requirements

Hardware

Software

Skills

Overview

Schematic of our UART example

Code

Create a new projection

Project Wizard

Create source files

Configure

          Linking .pio\build\nano33ble\firmware.elf
c:/users/lixiang/.platformio/.../ld.exe:
.pio\build\nano33ble\src\transmitter.cpp.o: multiple definition of `setup';
.pio\build\nano33ble\src\receiver.cpp.o: first defined here
c:/users/lixiang/.platformio/.../ld.exe:
.pio\build\nano33ble\src\transmitter.cpp.o: multiple definition of `loop';
.pio\build\nano33ble\src\receiver.cpp.o: commencement divers here
collect2.exe: error: ld returned 1 exit condition
          pio device listing        
          > pio device list
COM12
-----
Hardware ID: USB VID:PID=1234:5678 SER=F8EF8889D0211923 LOCATION=1-three.2:x.0
Description: USB 串行设备 (COM12)
COM11
-----
Hardware ID: USB VID:PID=1234:5678 SER=DAB991012486A110 LOCATION=1-3.1:x.0
Clarification: USB 串行设备 (COM11)

Build & Upload

          pio run        

Monitor

Test

Congrats!

snowthemst.blogspot.com

Source: https://kevinxli.medium.com/manage-two-arduinos-with-ease-using-platformio-4f83ad4a8868

0 Response to "Platformio/platformio-vscode-ide Can Build"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel