===== Getting Started =====
==== With CLion ====
* 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 =
* In CLion: ''tools'' -> ''PlatformIO'' -> ''Re-Init''
==== Without CLion ====
* 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''
==== 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.
* https://components101.com/microcontrollers/esp32-devkitc
* the "[[https://github.com/Makuna/NeoPixelBus/issues/152|right]]" way to do neopixel (where can be 0 through 7 and PixelPin can be any pin below 32):
''NeoPixelBusWs2812xMethod> strip(PixelCount, PixelPin);''
{{:lwc:hardware:selection_233.jpg?direct&400|}}