Skip to content
Snippets Groups Projects
Commit f0b8a08f authored by cnlohr's avatar cnlohr
Browse files

Clean up definition for ws2812b demo code.

parent 6fff52dc
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ uint32_t WS2812BLEDCallback( int ledno )
uint8_t index = (phases[ledno])>>8;
uint8_t rsbase = sintable[index];
uint8_t rs = rsbase>>3;
uint32_t fire = (huetable[(rs+190)&0xff]<<16) | (huetable[(rs+30)&0xff]) | ((huetable[(rs+0)]>>1)<<8);
uint32_t fire = ((huetable[(rs+190)&0xff]>>1)<<16) | (huetable[(rs+30)&0xff]) | ((huetable[(rs+0)]>>1)<<8);
uint32_t ice = 0x7f0000 | ((rsbase>>1)<<8) | ((rsbase>>1));
// Because this chip doesn't natively support multiplies, we are going to avoid tweening of 1..254.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment