Example #1
0
RTPat::RTPat(RGB *c, uint16_t nReps, uint8_t onlvl) :Pattern(onlvl)
{
	Serial.println("RTPat const");
	numReps = nReps;
	numPix = 2;
	color = c;
	reCalc();
}
Example #2
0
float ScaleEngine::getScaleWidth()
{
	float max;
	float len;
	int i;

	reCalc();
	max = 0.0f;
	for(i = 0; i < m_tickList.count(); i++) {
		len = m_tickList[i].textSize;
		if(len > max)
			max = len;
	}
	return max;
}
Example #3
0
const ScaleEngine::TickList& ScaleEngine::getTickList()
{
	reCalc();
	return m_tickList;
}