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?
-
@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.
-
@Yveaux
Thanks, i will have a look at it
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21 -
Door chime
My Project • 9 Mar 2025, 10:06 • Paul Scarbro 13 Mar 2025, 00:15 -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
Radar motion sensor
My Project • 15 days ago • suresh sharma 15 days ago -
Water Meter or "How to get Home Assistant to send saved data to an Arduino"
My Project • 18 Oct 2024, 02:19 • OldSurferDude 18 Oct 2024, 02:19