October 9th, 2015
  • Arduino
  • OOP
  • simplify code
  • rapid development

Improve your Arduino projects with Object-Oriented Programming (OOP)

If you've ever created a bigger program for your Arduino, controlling multiple connected devices and handling multiple input/output flows, you've probably found yourself in a world of hurt when you tried putting everything into one .ino file.
And in my opinion that is a good thing...

Since devices physically are separate entities, why not compartmentalize the logic controlling them into separate classes? If you want to keep your program maintainable and if you want to speed up your development the only solution is to take an Object-Oriented approach.

If you are completely new to Object-Oriented Programming I recommend you to do some self-education with this 8 minute video on YouTube. It will help you understand the basics of OOP.

A lot of community created sources for Arduino are very straight forward and are not created with an Object-Oriented mindset. Leaving you with the choice to either create spaghetti code, or to spend a lot of time rewriting the code the right way.

I've made it my quest to create classes that allow you to control Arduino devices as objects and that work on a more event driven fashion. In the next couple of months I will release my work here which will hopefully help you heaps creating more structured, better maintainable programs with less effort to create them. Since I had a large learning curve to make sure I wouldn't turn my devices into black smoke, by short-circuiting them by accident, I'll also add connection schemes for every class I release to help beginning Arduino developers.

So if you are a beginning (OOP) developer, or if you are new to Arduino and not really sure how to connect your devices or write code for them, or if you just want to have well documented logic that works as you expect: keep this blog on your radar! I will release all my sources to an open GIT repository, feel free to download, contribute and help me with my quest! More will follow as soon as possible.

< Previous post Overview posts Next post >
chlooquine <a href=https://chloroquineorigin.com/#>buy chloroquine online</a> erectile medication over the counter <a href=https://besterectiledysfunctionpills.com/#>erectile supplements</a> chloroquine phosphate vs hydroxychloroquine <a href=https://hydroxychloroquinex.com/#>hydroxyquine</a> is erectile dysfunction a chronic condition <a href=https://plaquenilx.com/#>plaquenil uses</a> tadalafil softsules tuf 20 <a href=https://tadalisxs.com/#>tadalafil dosage</a> zenquell m
WilsonHaf, January 20th, 2021
cialis 10mg username cure for ed <a href="https://cialisboss.com/#">cialis coupons </a> - cialis 20mg pills no new posts https://cialisboss.com/# - cialis 20 mg price cialis 20mg canada no new posts
Jahestaift, January 13th, 2021
chloroquine phosphate tablet <a href="https://chloroquineorigin.com/">quinine</a> best erectile drug <a href="https://erectiledysfunctionsxag.com/">erectile quality scale</a> what is hydroxychlor <a href="https://hydroxychloroquinex.com/">hydroxychloroquine generic name</a> fast acting erectile pills <a href="https://plaquenilx.com/">plaquenil over the counter</a> taladafil <a href="https://tadalisxs.com/">tadalafil pills</a> zithromax oral <a href="https://zithromaxes.com/
pharmacious, January 1st, 2021
chloroquina <a href=https://chloroquineorigin.com/>chloroquine phosphate aralen</a> erectile fissure <a href=https://erectiledysfunctionsxag.com/>erectile chambers</a> hydroxychloroquine sulfate 200 mg tab <a href=https://hydroxychloroquinex.com/>covid raoult</a> fix erectile dysfunction without drugs <a href=https://plaquenilx.com/>best time to take plaquenil</a> tadalafil 60 mg dosage <a href=https://tadalisxs.com/>generic tadalafil united states</a> zithromax azithromycin
pharmacious, December 31st, 2020

Leave a comment

= Thanks for your comment =