mirror of
https://github.com/meshtastic/meshtastic.git
synced 2024-12-28 23:19:47 -08:00
1.8 KiB
1.8 KiB
id | title | sidebar_label |
---|---|---|
build-env | Creating a build/development environment | Building Meshtastic |
This project uses the simple PlatformIO build system. PlatformIO is an extension to Microsoft VSCode.
GUI Installation
- Install Python.
- Install Git or GitHub Desktop
- Install Microsoft Visual Studio Code
- Install PlatformIO.
- Click the PlatformIO icon on the side bar.
- Under
Quick Access, Miscellaneous, Clone Git Project
enter the URL of the Meshtastic repo found here. - Select a file location to save the repo.
- Once loaded, open the
platformio.ini
file. - At the line
default_envs
you can change it to the board type you are building for ie.tlora-v2, tlora-v1, tlora-v2-1-1.6, tbeam, heltec, tbeam0.7
(boards are listed further down in the file). - The hardware can be configured for different countries by adding a definition to the
configuration.h
file.#define HW_VERSION_US
orHW_VERSION_EU433, HW_VERSION_EU865, HW_VERSION_CN, HW_VERSION_JP
. Other country settings can be found inMeshRadio.h
. The default isHW_VERSION_US
. - Click the PlatformIO icon on the side bar. Under
Project Tasks
you can now build or upload.
:::note
To get a clean build you may have to delete the auto-generated file ./.vscode/c_cpp_properties.json
, close and re-open Visual Studio and WAIT until the file is auto-generated before compiling again.
:::