my9221: rewrite to include new functionality and serve as a base class

This driver has been rewritten to support some new functionality, be
more generic and fix up some old bugs.  Multiple MY9221's can now be
chained together and are supported by the MY9221 base class.

In addition, the Grove LED Bar and Grove Circular LED drivers have
been incoporated into the my9221 library, using the new MY9221 class
as their base class.  Examples have been fixed to work with the new
library, and renamed where needed.

The current grovecircularled driver has been removed as it is now a
part of the my9221 library.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Jon Trulson
2015-12-03 18:21:54 -07:00
committed by Mihai Tudor Panu
parent 71b0791239
commit cbb289438e
11 changed files with 683 additions and 156 deletions

View File

@ -1,5 +1,5 @@
set (libname "my9221")
set (libdescription "upm ledbar")
set (module_src ${libname}.cxx)
set (module_h ${libname}.h)
set (libdescription "upm my9221")
set (module_src ${libname}.cxx groveledbar.cxx grovecircularled.cxx)
set (module_h ${libname}.h groveledbar.h grovecircularled.h)
upm_module_init()