Go Down

Topic: distributing my source -- with libraries? (Read 614 times) previous topic - next topic


Hey, what's the right way to pack up my code along with the hardware abstraction libraries by Alexander Brevig into a tidy package?  

My code is for my drum and midi sequencer as seen here:

I'm making extensive use of the hardware abstraction libraries found on the playground since they have radically sped up my development time.  I want to start selling instances of my project and I'm hoping there's some kind of easy (?) way to change the way I'm including the libraries in my code so I can throw the library files inline with my code files and have the compiler locate them ok when my customers want to update their code. Is this possible?  

for reference, here's the library home page on the playground:


If you move all HAL libraries into a folder by the name of your project, and additionally have a header file in that folder which includes all used HAL libraries. You could distribute that folder alone.

Imaginative folder structure:

Make ProjectName.h look like:
Code: [Select]

#include "Button.h"
#include "LED.h"


Now all your code can include ProjectName.h

[ I do not know if this works with the Arduino IDE, but it ought to ]

Great looking project! Glad you found the HALs useful  :D

Go Up