i had some octosw2811 get a bit complex and OO... i eventually had to add the pre/post amble to the header just to get everything to compile. should this be necessary.. maybe not, but it might be a nice upgrade.
#ifndef H_OCTOWS2811
#define H_OCTOWS2811
..
#endif