Skip to content

Commit

Permalink
support for benchmarking FastLed vs. WLED triginometry
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 authored Nov 29, 2024
1 parent b2364bf commit b0b6ec3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@

#define indexToVStrip(index, stripNr) ((index) | (int((stripNr)+1)<<16))

#if 0 // for benchmarking - change to "#if 1" to use less accurate, but 30% faster FastLed sin8 and cos8 functions
#define sin8_t sin8
#define cos8_t cos8
#define sin16_t sin16
#define cos16_t cos16
#define beatsin8_t beatsin8
#define beatsin88_t beatsin88
#define beatsin16_t beatsin16
#endif

// WLEDMM replace abs8 by abs, as abs8 does not work for numbers >127
#define abs8(x) abs(x)

Expand Down

0 comments on commit b0b6ec3

Please sign in to comment.