Added spots and two dots effects

This commit is contained in:
cschwinne
2019-12-04 12:15:12 +01:00
parent 3b70488828
commit 173c752d62
6 changed files with 118 additions and 234 deletions

View File

@@ -645,6 +645,12 @@ void WS2812FX::blur(uint8_t blur_amount)
}
}
uint16_t WS2812FX::triwave16(uint16_t in)
{
if (in < 0x8000) return in *2;
return 0xFFFF - (in - 0x8000)*2;
}
/*
* Put a value 0 to 255 in to get a color value.
* The colours are a transition r -> g -> b -> back to r