lwc:hardware:esp32

This is an old revision of the document!


  • list boards: platformio 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

<HTML><ul></HTML> <HTML><li></HTML>no built-in LED.<HTML></li></HTML> <HTML><li></HTML>https://components101.com/microcontrollers/esp32-devkitc<HTML></li></HTML> <HTML><li></HTML><HTML><p></HTML>the “right” way to do neopixel (where <X> can be 0 through 7 and PixelPin can be any pin below 32): <HTML></p></HTML>

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

<HTML></li></HTML><HTML></ul></HTML>

  • lwc/hardware/esp32.1606435445.txt.gz
  • Last modified: 2020/11/26 18:04
  • by John Harrison