lwc:hardware:esp32

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lwc:hardware:esp32 [2020/11/26 18:04] – created John Harrisonlwc:hardware:esp32 [2022/08/20 13:53] (current) John Harrison
Line 1: Line 1:
 ===== Getting Started ===== ===== 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'' 
 +<code>
 +lib_deps =
 +     <ADD YOUR LIBRARY HERE>
 +</code>
 +  * In CLion: ''tools'' -> ''PlatformIO'' -> ''Re-Init''
  
-  * list boards: platformio boards esp32 +==== Without CLion ==== 
-  * create new directory: mkdir path_to_the_new_directory +  * list boards: ''pio boards esp32'' 
-  * go to it: cd path_to_the_new_directory +  * create new directory: ''mkdir path_to_the_new_directory'' 
-  * initialize board: platformio project init --board esp32dev +  * go to it: ''cd path_to_the_new_directory'' 
 +  * initialize board: ''platformio project init --board esp32dev'' 
  
  
 ==== edit platformio.ini ==== ==== edit platformio.ini ====
 +<code>
 upload_port = /dev/ttyUSB* upload_port = /dev/ttyUSB*
 +upload_speed = 921600
 +monitor_speed = 115200
 +build_flags =
  
-''%%upload_speed = 921600%%''+; https://docs.espressif.com/projects/esp-idf/en/latest/get-started/get-started-wrover-kit.html#rgb-led
  
-''%%monitor_speed 115200%%''+-D LED_BUILTIN=2
  
-''%%build_flags =%%'' +</code>
- +
-''%%; https://docs.espressif.com/projects/esp-idf/en/latest/get-started/get-started-wrover-kit.html#rgb-led%%'' +
- +
-''%%-D LED_BUILTIN=2%%'' +
- +
-\\+
  
  
Line 49: Line 56:
 ===== ESP32 Core Board V2 / ESP32 DevKitC ===== ===== ESP32 Core Board V2 / ESP32 DevKitC =====
  
-<HTML><ul></HTML> +  * no built-in LED. 
-<HTML><li></HTML>no built-in LED.<HTML></li></HTML> +  https://components101.com/microcontrollers/esp32-devkitc 
-<HTML><li></HTML>https://components101.com/microcontrollers/esp32-devkitc<HTML></li></HTML> +  the "[[https://github.com/Makuna/NeoPixelBus/issues/152|right]]" way to do neopixel (where <X> can be 0 through 7 and PixelPin can be any pin below 32):
-<HTML><li></HTML><HTML><p></HTML>the "[[https://github.com/Makuna/NeoPixelBus/issues/152|right]]" way to do neopixel (where <X> can be 0 through 7 and PixelPin can be any pin below 32): <HTML></p></HTML> +
-<code> +
-NeoPixelBus<NeoGrbFeature, NeoEsp32Rmt<X>Ws2812xMethod> strip(PixelCount, PixelPin); +
-</code><HTML></li></HTML><HTML></ul></HTML> +
  
 +''NeoPixelBus<NeoGrbFeature, NeoEsp32Rmt<X>Ws2812xMethod> strip(PixelCount, PixelPin);''
  
 +{{:lwc:hardware:selection_233.jpg?direct&400|}}
  • lwc/hardware/esp32.1606435445.txt.gz
  • Last modified: 2020/11/26 18:04
  • by John Harrison