Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //2D array:
- const uint8_t bpm_array [][4] = {
- {29, 20, 140, 22},
- {34, 72, 64, 64},
- };
- void bpm_arr_play(uint8_t arrNum) {
- uint8_t beat = beatsin88(bpm_array[arrNum][0], bpm_array[arrNum][1], bpm_array[arrNum][2]);
- for ( uint8_t i = 0; i < NUM_LEDS; i++)
- {leds[i] = ColorFromPalette(currentPalette, gHue + i, bpm_array[arrNum][3]);
- }
- }
- //lets play with this params: {34, 72, 64, 64}
- bpm_arr_play (1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement