Ever wanted to turn some of your Arduino code into a library that you can reuse or share, or having issues with static callbacks for ESP-NOW? Here we look at how to tackle the job of migrating your code to an Arduino Library, as well as solving some specific ESP-NOW issues along the way.
Repo Status: Online - https://github.com/valentineautos/AutoCC
❤️Support our Projects on Patreon - / valentineautos
📹Previous Video
I Ruined My 350z Ducktail Spoiler - • Video
🩵 Follow Valentine Autos Socials
Instagram: / valentineautos
Facebook: / valentineautos
TikTok: / valentineautos
00:00:00 Introduction
00:01:04 Catchup
00:06:17 What is a Library?
00:07:46 File locations
00:09:15 Common attributes
00:12:29 Server files
00:13:15 Header file setup
00:16:19 CPP file setup
00:18:00 Updating .ino file
00:18:45 Separation of concerns
00:19:12 Private vs public
00:21:30 Converting code to library
00:48:55 ESP-NOW callback function issues
00:56:45 Startup checker
01:07:47 Error checking
01:09:23 Testing
01:11:30 Next steps