Mesh Node Series development environment

[简体中文]

This topic describes how to install the development environment and libraries for the Mesh Node family and how to use the sample code.

Install Framework

there are three methods to install the framework, choose one of them.`

Via Arduino board manager

This section describes “How to install the Heltec-nRF52 development framework directly from the Arduino board manager”.

  1. Install Arduino IDE, you can refer to this link: https://www.arduino.cc/en/software.

  2. Open Arduino IDE, and click File->Peferences->Settings

  1. Input following json url to board manager URLs:

https://github.com/HelTecAutomation/Heltec_nRF52/releases/download/1.7.0/package_heltec_nrf_index.json

  1. ClickOK to return to the main Arduino interface.

  2. Click Boards Manager..., search Heltec-nRF52 in the new pop-up dialog, select the latest releases and click install.

  1. The installation was successful when a prompt appears.

Tip

If you disconnect before the installation is complete, don’t panic. Click Install to continue the download.

  1. Click tools to confirm whether the development environment is installed successfully.

Via Git

Github” describes how to install this framework via git. Just follow the steps in the relevant link:

Tip

Please follow the suggested path as much as possible to avoid unnecessary trouble.

 

Via Local File

  1. Download the development environment.

  2. Open Arduino IDE, and click File->Peferences.

  1. Go to the folder in the red box.

  1. Create a new “hardware” folder in the Arduino folder. If there is already a “hardware” folder, you don’t need to create a new one.

  1. Go to the “hardware” folder and extract “heltec” into this folder.

Tip

This folder name is custom. If you have installed other heltec framework, you can use this folder directly.

  1. Go to the “heltec” folder, refer to the figure below to confirm whether the path in the red box is correct. Unzip the compressed package you downloaded to this path.

  1. Restart the Arduino IDE to confirm whether the development environment is installed successfully.


Running an Example

Connect your Mesh Node series board to computer via a high quality Micro USB cable (This is the most common reason we had encountered can’t program software).

  1. Open the tools option and select the corresponding device and port.

  1. Select an example

  1. Compile and upload

New a sketch

  1. In Arduino IDE, click File --> new .

  2. Copy the following code:

  // the setup routine runs once when starts up
  void setup(){

    // Initialize the Heltec ASR650x object


  // the loop routine runs over and over again forever
  void loop() {

  }