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”.
Install Arduino IDE, you can refer to this link: https://www.arduino.cc/en/software.
Open Arduino IDE, and click
File
->Peferences
->Settings
Input following json url to board manager URLs:
https://github.com/HelTecAutomation/Heltec_nRF52/releases/download/1.7.0/package_heltec_nrf_index.json
Click
OK
to return to the main Arduino interface.Click
Boards Manager...
, searchHeltec-nRF52
in the new pop-up dialog, select the latestreleases
and clickinstall
.
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.
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
Go to the folder in the red box.
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.
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.
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.
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).
Open the
tools
option and select the corresponding device and port.
Select an example
Compile and upload
New a sketch
In Arduino IDE, click
File --> new
.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() {
}