void DRAnimation0::paint(RNLights & lights) {
	uint8_t hue = (getAnimationMillis() / 2) % 256;
	lights.setAllPixelColors((i==0)?MAX_BRIGHTNESS:0,(i==1)?MAX_BRIGHTNESS:0,(i==2)?MAX_BRIGHTNESS:0);

	if ( info.getTaps() ) {
		info.printf("Tappy\n");
		i = (i+1)%3;
	}
}
Exemplo n.º 2
0
void Mute::paint(RNLights & lights) {
    uint8_t brightness = 20 + getUnsignedTweakValue()/5;
    lights.setAllPixelColors(brightness, brightness, brightness);
}