Classes & Libraries

Hi All,

I have been having some trouble with classes how to use them in arduino. I cannot seem to find any good videos that are useful and not talking jibberish to me as im only a newbie. I am just wondering if anybody has any help for me or any recources i can look through to help me.


Take a look at

It shows how to create a class and for that class to be placed in a library

Note, however, that a class does not have to be in a library nor does a library have to use a class

Classes are a standard C++ construct - there's nothing about them that is special for Arduino. In consequence, any C++ tutorial should give you what you are looking for. Then you can check out the specifics of building a library.