I thought when you passed an array you also passed it's size.
CubeControl::CubeControl(... byte layerPinNumbers[4] ...)
just my guess.
I thought when you passed an array you also passed it's size.
CubeControl::CubeControl(... byte layerPinNumbers[4] ...)
just my guess.