Heltec ESP32 Based Dev-baords setup Arduino IDE
https://heltec-automation-docs.readthedocs.io/en/latest/esp32/quick_start.html
Heltec ESP32+LoRa Series Quick Start
Before all operation, please confirm whether the USB driver, Git and Arduino IDE has been installed correctly. If not, please refer to this two articles establish serial connection and Install Git and Arduino IDE.
There are two methods to install the development framework, choose one of they:
Via Arduino Board Manager
Step1. Download Arduino-ESP32 Support
Open Arduino IDE, and click File->Peferences.


Input the last ESP32 package URL: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/releases/download/0.0.5/package_heltec_esp32_index.json

Click Tools --> Board --> Boards Manager..., search Heltec ESP32 in the new pop-up dialog, then click install


The source code of Heltec ESP series (ESP32 & ESP8266) framework available here: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series
Step2. Download the Heltec ESP32 Library
Open Arduino IDE, then Select Sketch->Include Library->Manage Libraries...
Search Heltec ESP32 and install it.


The source code of Heltec ESP32 library available here: https://github.com/HelTecAutomation/Heltec_ESP32
Via Git
For Windows:
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/InstallGuide/windows.mdFor MacOS:
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/InstallGuide/mac.mdFor Linux
Debian/Ubuntu:
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/InstallGuide/debian_ubuntu.mdFedora:
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/InstallGuide/fedora.mdOpenSUSE:
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/InstallGuide/opensuse.md
Example
This section for verifying whether you can program with Arduino or not. Now, The USB cable connects to Heltec ESP32 board, then select your serial port which is connected to Heltec ESP32 board.
Select a demo example, compile and upload.
Execute an example
Correctly select a board and relevant options in the Tools menu:

Then select an example likes XXXXXX_FactoryTest.ino

Compile & Upload

New a Heltec ESP32 program
Open Arduino IDE, create a new .ino file, then copy the below code.
#include <heltec.h>
// the setup routine runs once when starts up
void setup(){
// Initialize the Heltec ESP32 object
Heltec.begin(true /*DisplayEnable Enable*/, true /*LoRa Disable*/, true /*Serial Enable*/, true /*PABOOST Enable*/, 470E6 /**/);
}
// the loop routine runs over and over again forever
void loop() {
}
below data is too old
from https://docs.heltec.cn/#/en/user_manual/how_to_install_esp32_Arduino
Heltec ESP32 Based Dev-baords Develop Environment
USB driver, Git and Arduino IDE has installed first. If not, please view this two articles establish serial connection and Install Git and Arduino IDE.CONTENT
1. Setting Environment
Step1. Download Arduino-ESP32 Support
File->Peferences->Settings


Tools->Board:->Boards Manager..., search Heltec ESP32 in the new pop-up dialog, then click install

Step2. Download the Heltec ESP32 Library
Sketch->Include Library->Manage Libraries... Search Heltec ESP32 and install it

Heltec ESP32 library available here: https://github.com/HelTecAutomation/Heltec_ESP32Example
1. Execute a example likes FactoryTest.ino
COM3)
XXXXXX_FactoryTest.ino

2. New a Heltec ESP32 program
.ino file, then copy the below code.
留言
張貼留言