Skip to content

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

  1. 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
  2. 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

  1. Make sure platformio is using correct serial port, e.g. COMx on Windows.
  2. build (takes about 6 minutes for first time, to build all necessary support files)
  3. upload
  4. works in serial monitor (baudrate should be set to 115200 by default). Can also use putty terminal, but may need to close VS studio.