This is an old revision of the document!
Getting Started
- 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
edit platformio.ini
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
Libraries
- install example: platformio lib -g install https://github.com/Makuna/NeoPixelBus.git
- then add to platformio.ini NeoPixelBus
Useful commands
- 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
unsolved:
- change serial port
- monitor
- add library
ESP32 Core Board V2 / ESP32 DevKitC
- no built-in LED.
- the “right” way to do neopixel (where <X> can be 0 through 7 and PixelPin can be any pin below 32):
NeoPixelBus<NeoGrbFeature, NeoEsp32Rmt<X>Ws2812xMethod> strip(PixelCount, PixelPin);