EasyManua.ls Logo

DFRobot FIREBEETLE BOARD-ESP32 - Using Peripherals with FireBeetle ESP32; Project 1: Serial Port Experiment

DFRobot FIREBEETLE BOARD-ESP32
49 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Welcome to DFRobot: www.DFRobot.com.cn 20 / 49
Chapter 3: The Basics of Using Peripherals in the FireBeetle Board-ESP32
This chapter covers the basics of how to use peripherals in the FireBeetle Board-ESP32 by some
example projects. You can also modify the example projects below to finish your own projects.
The FireBeetle Board-ESP32 mainly includes UART; I2C; SPI; ADC; PWM; DAC; and integrated hall
sensor etc.
Project1: The experiment of Serial Port
In the first chapter, we have uploaded Blink, a flash program to test the LED light in the board.
Now, let’s print the timing data in every second with UART pin.
Components in need:
1 x FireBeetle Board-ESP32
Hardware linking method:
No need for other sensor. Please connect FireBeetle Board-ESP32 directly to your computer by USB
data wire.
Enter code
You would better enter the code manually than open Course->Item-1 to be familiar with it.
Sample code:
void setup() {
Serial.begin(115200);