lwc:hardware:esp32

  • open CLion and create PlatformIO project there. You should have setup() and loop() created for you
  • in terminal search for libraries you need. Example: pio pkg search irremote
  • add in platformio.ini
lib_deps =
     <ADD YOUR LIBRARY HERE>
  • In CLion: toolsPlatformIORe-Init
  • list boards: pio boards esp32
  • create new directory: mkdir path_to_the_new_directory
  • go to it: cd path_to_the_new_directory
  • initialize board: platformio project init --board esp32dev 
upload_port = /dev/ttyUSB*
upload_speed = 921600
monitor_speed = 115200
build_flags =

; https://docs.espressif.com/projects/esp-idf/en/latest/get-started/get-started-wrover-kit.html#rgb-led

-D LED_BUILTIN=2
  • install example: platformio lib -g install https://github.com/Makuna/NeoPixelBus.git
  • then add to platformio.ini NeoPixelBus
  • pio run - process/build project from the current directory
  • pio run –target upload or pio run -t upload - upload firmware to a target
  • pio run –target clean - clean project (remove compiled files)
  • pio run –help - additional information
  • pio device monitor - serial port
  •  change serial port
  •  monitor
  • add library

NeoPixelBus<NeoGrbFeature, NeoEsp32Rmt<X>Ws2812xMethod> strip(PixelCount, PixelPin);

  • lwc/hardware/esp32.txt
  • Last modified: 2022/08/20 13:53
  • by John Harrison