My own library with MyS commands
-
I want to make my own library. In that library I will put stuff that I use in all my sketches.
I will still include MySensors.h, version 2.1.1
What I want to do is to put MyMessage for 3 childs that I always use in my sketches, of course I can write it in my sketch but it looks cleaner and I want to learn more about library.
When I use MyMessage in my new library I get an error in Arduino IDE,
'MyMessage' was not declared in this scope
I guess that MyMessage is not public or something like that.Anyone that can help in correct direction?
-
I want to make my own library. In that library I will put stuff that I use in all my sketches.
I will still include MySensors.h, version 2.1.1
What I want to do is to put MyMessage for 3 childs that I always use in my sketches, of course I can write it in my sketch but it looks cleaner and I want to learn more about library.
When I use MyMessage in my new library I get an error in Arduino IDE,
'MyMessage' was not declared in this scope
I guess that MyMessage is not public or something like that.Anyone that can help in correct direction?
-
@flopp The Arduino build system is 'tricky' on includes, to state it mildly...
Maybe you can get some inpiration from my Dollhouse sketches, which share the 'DemoSensorConfig' library.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login