-
Notifications
You must be signed in to change notification settings - Fork 0
Basic Hello World Example
ronf-ucb edited this page Dec 30, 2020
·
3 revisions
Other examples are located in: ~/home/.platformio/packages/framework-espidf/examples
- File-> Open Folder -> ~/home/.platformio/packages/framework-espidfexamples/espidf-hello-world
(also can be downloaded from github:
https://github.com/platformio/platform-espressif32/blob/master/examples/espidf-hello-world/src/hello_world_main.c - Open and edit the platformio.ini file
update the default monitor speed to 115200 in platformio.ini file, and also delete the other boards which are not used.
The example platformio.ini from SkeletonHuzzah32 can also be used:
https://github.com/ucb-ee192/SkeletonHuzzah32/blob/main/platformio.ini
[env:featheresp32]
platform = espressif32
framework = espidf
board = featheresp32
monitor_speed = 115200
- Make sure platformio is using correct serial port, e.g. COMx on Windows.
- build (takes about 6 minutes for first time, to build all necessary support files)
- upload
- works in serial monitor (baudrate should be set to 115200 by default). Can also use putty terminal, but may need to close VS studio.