Change lib8tion library to be usable in user keymaps (#5598)

* Move lib8tion header-defined constant into implementation file, add to build

* Move b_m16_interleave initializtion to lib8tion.c, change build to include lib8tion.c in QUANTUM_LIB_SRC

* Remove left-over whitespace

* Move lib8tion include by RGB_MATRIX_ENABLE code in makefile

* Revert build changes and change lib8tion b_m16_interleave constant to static
pull/5990/head
Alec Geatches 6 years ago committed by Drashna Jaelre
parent c941ef0f09
commit 396c6adaa8
No known key found for this signature in database
GPG Key ID: 4C4221222CD5F9F0

@ -147,7 +147,7 @@ LIB8STATIC int16_t cos16( uint16_t theta)
#endif #endif
const uint8_t b_m16_interleave[] = { 0, 49, 49, 41, 90, 27, 117, 10 }; static const uint8_t b_m16_interleave[8] = { 0, 49, 49, 41, 90, 27, 117, 10 };
/// Fast 8-bit approximation of sin(x). This approximation never varies more than /// Fast 8-bit approximation of sin(x). This approximation never varies more than
/// 2% from the floating point value you'd get by doing /// 2% from the floating point value you'd get by doing

Loading…
Cancel
Save