Using PlatformIO with ESP32
#############################
Video Source: www.youtube.com/watch?v=vIOptOBHdR8
I need to use C++ and PlatfomIO for my next ESP32 project. I will be working on an audio application that requires precise timing and so a simpler (No memory management function overhead etc.) language like C++ is my choice. Up to now I have been using micropython for microcontroller applications so will need to change my tool chain to use C++. • In this video I will show how I set up my PlatformIO tool chain and using it for basic microcontroller functionality (LED Blinking, square wave generator and network connection). • 00:00 Introduction in the park. • 00:54 Install instructions and demonstration – Install Visual Studio Code then add the PlatformIO extension. May take a while. • 01:53 Creating my first PlatformIO project. First time you do this can take a while as it installs libraries etc. Next time should be very fast. My setup, I keep my projects under a “c:/projects” folder. • 03:49 Look at the folder layout • 07:24 Add code to blink LEDS, upload, and check it works. Show some of the platform benefits like hints, code ahead, interactive error reporting. • 12:07 Showing GitHub integration. • 13:17 Showing another method to load a starter project based on the PlatformIO examples. Show using example code for Wi-Fi access point list • 15:32 Update code to make a square wave generator, view on Oscilloscope. Hopefully this shows why , for audio, I need the more controlled timing that c++ gives you (vs Micropython). I still will default to using Micropython unless in most other cases. • 19:12 Quick look at plans for next video, audio streaming for my Remote Ham radio • Resources • ESP32 walkie talky project: https://github.com/atomic14/esp32-wal... • ESP32 wireless microphone: https://github.com/atomic14/esp32-hsp-hf • Arduino audio toolkit: https://github.com/pschatzmann/arduin... and • #419 ESP32 Audio Tutorial with lots o... • Installing PlatformIO (There are a few YouTube videos about this – I liked this one) : • PlatformIO - A True Alternative to th... • PlatformIO: https://platformio.org/ • Visual Studio Code: https://code.visualstudio.com/
#############################
New on site