How to add an class out of an library into Spark

Hi all,

I’m new to Spark and still a bit of a n00b. I did some work on my Arduino and know my way around the code but I just can’t figure this out myself. Your help is welcome!

Let me explain the situation:

I have a working code on my Arduino which controls a RX and TX 433Mhz module. With these modules I can control wireless power outlets and I have an wireless PIR sensor.
The code uses two libraries which I normally call with this:
"#include < RemoteReceiver.h>"
"#include < RemoteSwitch.h>"

Since this is not the case with Spark Core. How do I get my libraries to work with my code.
The library basically contains some classes.
How do I place my class in the code? And where? Just copying the code from the library into Spark won’t work because it would say I haven’t declare the class. (the_user_app.cpp:514:3: error: ‘RemoteReceiver’ has not been declared)

Hope you folks can learn my how to use my class, which is normally inside the library, in Spark Core.

Thanks all!

Hi @bartjenniskens,

Sounds cool! We’re actually going to be rolling out multiple file support on the IDE very soon (today / early next week), so you can develop more closely to how you’re doing it now!

We’re also working on better library integration with the build site, so users can more easily pull in their favorite libraries as well.

Thanks,
David

1 Like

Hi David,

Awesome! Thanks for the answer.
When I have everything up and running I’ll post the code.

Regards,
Bart

Hi @Dave,

I noticed the change today! Little bug maybe, some tabs are duplicated randomly;

regards,
bart

Hi @bartjenniskens,

Thanks for the bug report, should be fixed soon I think. :smiley:

Thanks,
David