12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
-
-
- #ifndef __SEQUENCE_H__
- #define __SEQUENCE_H__
-
- #include <stdint.h>
- #include "buttons.h"
-
- enum channels {
- CH1 = (1 << 0),
- CH2 = (1 << 1),
- CH3 = (1 << 2),
-
- CH_KICK = CH1,
- CH_SNARE = CH2,
- CH_HIHAT = CH3,
-
- NUM_CHANNELS = 3
- };
-
- #define CH_GPIO_TIMINGS { 42, 42, 42 }
-
- void sequence_init(void);
- void sequence_set_bpm(uint32_t new_bpm);
- void sequence_set_beats(uint32_t new_beats);
- void sequence_handle_button_loopstation(enum buttons btn, bool rec);
- void sequence_handle_button_drummachine(enum buttons btn);
- void sequence_run(void);
-
- #endif
|