We use libraries all the time - even the Arduino framework is a library!
YouTube Video Link: https://youtu.be/mhYuiveM544
►Use coupon code PCBWay8th-RSB to get $10 off a $40 order! Coupon lasts for THREE months. Limited number of coupons available.
Writing a library is straightforward if you follow the simple pattern that I demo here. I show you a Real World library that controls a bit of hardware that I had on my workbench - but you can write one for ANY piece of hardware.
We'll even talk about elephants (the one in the room) and why we should not be fearful about simple things like 'objects' - watch the video and judge for yourself. 😉
Yes, a library can take the complexity of coding away from your sketch so that it (and future ones) "just work" by calling a library.
► The two-digit, common anode, 74HC595-driven display I used in the video (widely available):
https://s.click.aliexpress.com/e/_DmJsQ0B
► More information (including all links, sketches & PDFs in my GitHub): Sketches and the library from the demo are all right here in the GitHub
► List of all my videos
(Special thanks to Michael Kurt Vogel for compiling this)
http://bit.ly/YouTubeVideoList-RalphBacon
► 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 (and other μControllers) journey.
My channel, GitHub and blog are here:
------------------------------------------------------------------
• https://www.youtube.com/RalphBacon
• https://ralphbacon.blog
• https://github.com/RalphBacon
• https://buymeacoffee.com/ralphbacon
------------------------------------------------------------------
My ABOUT page with email address: https://www.youtube.com/c/RalphBacon/about