As a new arduino user I’m actually learning about how to create a new library.
What I want is to create a General code that access the library and get a variable and it’s value defined inside the library by a class.
I created the header and source code files and also the class related to them as followed the codes below:
#if ARDUINO >= 100
int on(); //function
int on1; // variable defined
int DigitalPin::on() // function
int on1=1;// could be any number
return on1; return variable
By using the general source I would access through the code below:
int test11 = 1;
test3 = teste.on(); // access the variable inside the library