Hey I'm new to this library,

Hey I’m new to this library, I mainly use C to develop my projects under ARM microcontrollers. My first option is try to port the library to C so I can use it, is there any existing attempt to accomplish this? Or should I start from scratch?
Thanks for this awesome project.

What toolchain (compiler etc) are you using?
You may be able to do your development in C and let the library continue to exist in C++.
Many of the interfaces are easy enough to use from C as is (or with very minimal changes).

Hi Mark, thanks for replying. That’s a great option I didn’t think of. I’m currently using LPCXpresso IDE for developing Cortex M3 and M0 microcontrollers. The free license doesn’t support C++ but I will look into other toolchains that support C/C++ and give it a tray. =)

I’ll put it on the todo list to take a look and see if we can simplify using the library from C code. I don’t think we’re likely to back port the whole shebang at this point, but maybe we can streamline things if needed.

For what it’s worth, we develop and test with gcc.

That would be awesome! I totally understand, I’m used to gcc as well so maybe that’s a good option. Once I get started I’ll let you know my feedback

The math stuff would likely be easily portable, it’s mostly C (and some asm). The code that actually talks to the leds is pretty heavily C++ template based (template substitution is used to get higher performance by determining things at compile time, instead of runtime, and replacing variable references with known-at-compile-time constants).

Hi Daniel I saw the same buy taking a quick look at the source code. I’m already looking into gcc-arm which supports C/C++, I would need to port any hardware related code as pins, spi, interrupts, etc and see how it works.

There’s another post in here, someone asking about porting to PIC32 - my comment to him outlines, roughly, what my plan is (for supporting both PIC32 and beagle bone).

Awesome I’m getting a beaglebone black next week so I can test it in there too whenever its available. Thanks!