libarduino – hacked it a bit

Found a lib the other day that can be used instead of the Arduino IDE. The library is called libarduino.  Using the lib means I can switch entirely to using C when teaching embedded at Gothenburg University/IT University. Only real problem was that the library really wasn’t prepared for producing a stand alone library or for being installed and will therefor not be that easy to use for the students. So I started hacking the makefiles to solve the problems. And now I have a libarduino that creates a static archive (library) and can be installed for later use by other programs (linking the libarduino library (libarduino.a)).

Cool thing is that the makefile for the new program becomes really small. For a new program, do a Makefile looking something like this:

SRC=test1.c
PROG=test1
include <your path>/libarduino/arduino.mk

… and you can now do (among other things)

make

make install

the last target install the application to your arduino.

3 responses to “libarduino – hacked it a bit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s