Contributed Libraries

From chipKIT
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.

Installation

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