#151 - ESP32 Passing Values 💾 Between Tasks - Deep Dive (2 Easy Ways)

#151 - ESP32 Passing Values 💾 Between Tasks - Deep Dive (2 Easy Ways)

54.226 Lượt nghe
#151 - ESP32 Passing Values 💾 Between Tasks - Deep Dive (2 Easy Ways)
A deep dive into ESP32 Queues and Global Variables for passing variables and values between tasks, regardless of the core they are running on. LCSC Electronics (Love Components? Save Cost!) More Asian Brands, Lower Prices, 4 Hours Ready for Shipping Shop: https://lcsc.com/?href=arduinoelectronics&source=referral All this and more (eg sketches) in my GitHub: https://github.com/RalphBacon/ESP32-Variable-Passing-Using-Queues-Global-Vars It's not Rocket Science! Here's all you need to know on how Queues work in RTOS and the ESP32 to pass values from one task to another in a safe manner. Just a couple of statements and it's done. But this is a Deep Dive so we do cover the subject in depth! As if that is not enough we also cover an alternative way of passing values between tasks - but is it any better? I'll leave that for you to decide. As an extra (as if this video is not already long enough) we investigate how the Prime Number calculator suddenly increases its processing time from around 60 milliseconds to 1.7 seconds. What is going on? ==================== LINKS LINKS LINKS ==================== (Some links are affiliate links which may financially help my channel. As an Amazon Associate I earn from qualifying purchases.) Arduino-sized ESP32 board (Wemos): WeMos® TTgo ESP32 WiFi + Bluetooth Board 4MB Flash UNO D1 R32 https://eu.banggood.com/Wholesale-Warehouse-WeMos-TTgo-ESP32-WiFi-Bluetooth-Board-4MB-Flash-UNO-D1-R32-wp-Eu-1163967.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897 Wemos D1 Mini ESP32 240Mhz Dual Core(as used in the demo) on offer $6 until end June 2019: Wemos® D1 Mini ESP32 ESP-32 WiFi+bluetooth Internet Of Things Development Board Based ESP8266 Fully Functional https://www.banggood.com/Wemos-D1-Mini-ESP32-ESP-32-WiFiBluetooth-Internet-Of-Things-Development-Board-Based-ESP8266-p-1205854.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897 Hobby Components USBASP AVR Programmer and Adapter (Amazon UK): https://amzn.to/2ZK5S3I If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey My channel and blog are here: ------------------------------------------------------------------ https://www.youtube.com/RalphBacon https://ralphbacon.blog ------------------------------------------------------------------