My library didn't work

I want to learn how create an library. I have read all this topic : https://www.arduino.cc/en/Hacking/LibraryTutorial

now, I have create the two files (.h and .cpp)

When I want to test my library with a basic program, i can't build the program.

I just want to inverse one output with this library.

Someone can watch my library and tell me what is false ?

Thank you !

Inverse.cpp (359 Bytes)

Inverse.h (329 Bytes)

Maybe you can post your basic program too?

Yes no problem.

Test_Library.ino (131 Bytes)

Does the code compile?
What does it actually do?
How does that differ from what you want?

It doesn't make sense to look at the code without a clue what we are looking for.

When I want to verify the code, there is an error.

I just want to create an library to learn it.

I want to enter the pin number (for example 13) and change de level of this pin (0 or 1).

My library is just for enter the function "inverse" --> configure the choose pin in output, and the function "change" --> set a 0 if before was 1 etc..

It's just for understand how create an simple library.

And to use a function in the library, we have to write : nameoflibrary.nameoffonction(); ?
With a dot in the middle ? it's right ?

When I want to verify the code, there is an error.

Fix it. If you need help, we need to know more than "there is an error".

I just don't understand how call a function in the librarie. I create my librarie, I include my librarie but I don't know how to call all the function there are in this librarie.

I read in this topic : https://www.arduino.cc/en/Hacking/LibraryTutorial
They call the function like this : library_name.function_name. With a dot in the middle. But it doesn't work. When I do the same think, it write : expected unqualified-id before "." token.

And when I delete the dot in the middle, the compilation work but I think my function is not call.

My Question :How to call a function who is in a library ??

I read in this topic : https://www.arduino.cc/en/Hacking/LibraryTutorial
They call the function like this : library_name.function_name.

No, they don't. They create an instance of the class, like this:

class_name instanceName;

Then, they call the method like this:

      instanceName.methodName();

gaelperr:
I just don't understand how call a function in the librarie. I create my librarie

pinMode(pin; OUTPUT);

whoops...

update your code.