¿How create a library in Arduino?

I want making a library in arduino, I have not some idea, I Need help.
I do not know where to start and read what is on the official arduino page but I do not understand anything I need a more clear help please

open up some libray files and have a look at them. they are just a header (.h) file and a source file (.cpp).
the header declares functions variables, and the source file defines the functions.

a library is a collection of variables and functions

Writing a Library for Arduino

OldSteve:
Writing a Library for Arduino

I saw that myself and I did not understand

It's fairly straightforward. Which part didn't you understand?

Did you work through the example and create the 'Morse' library?

I saw that myself and I did not understand

Then you are not ready to be creating libraries. When the light comes on, you'll know it, and then you can create a library of your own.

I can't agree more with PaulS :slight_smile: Keep learning about writing C/C++ and you'll get there.

Then there are other resources like Adafruit which has a progressive tutorial that begins with some basics here and then introduces classes here.

Learning how to create a class is fundamental to your goal of making a library. Once you have your class working, putting it into the proper file structure is somewhat trivial.

More people should look at those tutorials...

But on the other hand, a class != library on it's own. Nor is a library a class per se. A library can also be plain C if you want to.

septillion:
A library can also be plain C if you want to.

yes, so in that case OP can run straight to the more trivial bits.

:wink:

Hi,
Look at this YouTube, it may help.

Tom... :slight_smile:

I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

Unfortunately, most people want free work and will jump on any opportunity to get such. :slight_smile:

Arduino_n00b, why are you digging up a 2.5 year old thread to say something that doesn't even help solve the problem?