Show Posts
Pages: [1]
1  Development / Suggestions for the Arduino Project / Total rewrite of the Arduino App needed! on: June 18, 2012, 04:32:48 pm

I think the quite monolithic Arduino app should be separated into several modules, that make it easier to swap parts out for e.g. a sane editor (line numbers? smiley-eek), a decent build system.

The library concepts needs fixing. It is hard to write a library with code that can be reused outside the Arduino world. But that seems to be mainly a problem of the weird (or rather non-existing) build system.  smiley-roll

The idea of the sketches leaves me puzzeled too. Who came up with the wondrous idea, that any additional file used needs to be copied (<-- no joke  smiley-sad-blue) into the sketch directory? A reusability nightmare!

This is so broken in so many ways...


P.S.: Sorry for the rant, but if you have ever worked with an IDE, Arduino sucks...
2  Using Arduino / Programming Questions / Re: Advanced Library question on: June 18, 2012, 04:12:58 pm
Its not that the library is limited to a single class, so much as it is limited to a single cpp file.  You can code multiple classes within that cpp file.  I don't know of a way to have multiple directories of files in a library...

Ok. Do I have to use C++ at all or could I do all this in plain C too?
3  Using Arduino / Programming Questions / Advanced Library question on: June 18, 2012, 03:57:24 pm

I'm trying to write a library. The thing is, it should be quite versatile and not limited to the Arduino. But it seems that a library for Arduino can only consist of one(!) C++ class and its header in the library's root directory. No subdirectories (at least stuff in there isn't found by the build system).

Is it possible to coax the arduino build system to accept subdirectories and somehow specify what to build? Can someone point me to an explanation how the build system works in the first place?

Pages: [1]