google
yahoo
bing

libarduino – hacked it a bit

Friday, January 29th, 2010 | Arduino, Free Software, Software

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 Comments to libarduino – hacked it a bit

archie
January 29, 2010

Hm, maybe its time to pick up the arduino again :) Thanks for the notes on configurations today btw.

hesa
January 30, 2010

he he, pick it up :)

Just restructured some more … soon time to “release”

hesa
January 30, 2010

Guess it works now.
Anyone want to be a test pilot?

Leave a comment

Me elsewhere ..


Fatal error: Call to undefined method WP_Error::__destruct() in /www/hesa/wordpress/wp-includes/default-widgets.php on line 735