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 >
https://kwork.ru/editing-media/39534069/montazh-i-dinamicheskaya-narezka-video-tsvetokorr-i-rabota-s-effektami?ref=20458156 https://kwork.ru/personal-assistant/11488546/poisk-i-podborka-tekhniki-i-elektroniki-a-takzhe-magazina-gde-kupit?ref=20458156 https://kwork.ru/translations/40945585/kopirayting?ref=20458156 https://kwork.ru/logo/23855570/sozdanie-logotipa?ref=20458156 https://kwork.ru/links/37429965/5-avtoritetnykh-domashnyaya-stranitsa-pbn-ssylok-da-60-do-90?ref=20458156 https://kwork
PabloSpuby, July 9th, 2025
<a href=https://augmentin.top/>penicillin at walmart</a> The high incidence of breast cancer, its relatively long development phase and the financial burden to the NHS in relation to treatment makes it a prime target for dietary preventative strategies
augmentin and hot flashes, July 7th, 2025
https://drive.google.com/file/d/1cvR1NI5XgmoFtcwZtEffHJmKA4Ke7Ujm/view?usp=sharing https://drive.google.com/file/d/1BPoii4IDecSOJtk9v5-La-zlHpiEvdJo/view?usp=sharing https://drive.google.com/file/d/1kAE16WqMxfoH2WmpNYiBqJ13ZUoFcI4u/view?usp=sharing https://drive.google.com/file/d/1Ulu6C-xdOR75D8Vyt_aLXyEqnSR183U4/view?usp=sharing https://drive.google.com/file/d/1ERESeX9dDe4FcrJyf9ageUszxYH3BMk3/view?usp=sharing https://drive.google.com/file/d/1XRamM4cG653jPcTdkCjkFArqpmUylM7a/view?usp=shari
PabloSpuby, July 6th, 2025
https://kwork.ru/usability-testing/41147047/nastroyka-telefonii-bitriks24?ref=20458156 https://kwork.ru/translations/24450544/perevod-teksta-s-angliyskogo-na-russkiy-i-naoborot?ref=20458156 https://kwork.ru/logo/32067583/oformlenie-dlya-telegramm-kanala?ref=20458156 https://kwork.ru/translations/7765012/perevody-s-angliyskogo-na-russkiy-yazyk?ref=20458156 https://kwork.ru/creative-writing/528700/napishu-stikh-prozu-rasskaz?ref=20458156 https://kwork.ru/resumes-and-letters/14607428/sostavlyu
PabloSpuby, July 4th, 2025

Leave a comment

= Thanks for your comment =