Contributed Libraries

From chipKIT
Revision as of 14:45, 24 June 2016 by Bellizima (talk | contribs) (Tweaked text under Installation section, Added section about "Writing/Porting a Library")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contributed Libraries

There are many Standard Libraries that already exist within the ChipKIT core. However, the real power behind this platform is the abundance of Contributed (Third-Party) Libraries that allow users to explore new technologies.


There are a few ways to install contributed libraries, and they're explained on Arduino's Library Install Tutorial, which applies as well to chipKIT sketches.

Writing/Porting a Library

Below are some things to remember if you want to write/port a library so that it is cross-platform.

  • Eliminate processor- and/or chip-specific code
  • If processor- and chip-specific code cannot be eliminated, use #ifdef commands to encapsulate your processor or chip specific code
  • Test your changes on as many platforms as possible
  • Send a patch to the maintainer
  • If the maintainer is unwilling to accept changes, fork the library