This commit is contained in:
Wolfgang Hottgenroth 2024-04-10 13:43:28 +02:00
parent 2f8e2937c1
commit 5b9194caae
3 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ MCU=msp430g2553
CFLAGS=-Wall -mmcu=$(MCU) -std=gnu99 -I $(TOOLCHAIN_PREFIX)/include -O1 -g0
# for debugging
CFLAGS+= -g3 -ggdb -gdwarf-2
#CFLAGS+= -g3 -ggdb -gdwarf-2
LDFLAGS=-mmcu=$(MCU) -L $(TOOLCHAIN_PREFIX)/include

View File

@ -1165,10 +1165,11 @@ t_melodies tusch2 = {
void playTusch1(void *handle) {
sequencerPlayMelodies(&tusch1);
schAdd(playTusch1, NULL, 30000, 0);
}
void melodyInit() {
// sequencerPlayMelodies(&tetrisTheme);
sequencerPlayMelodies(&tetrisTheme);
schAdd(playTusch1, NULL, 2000, 0);
}

View File

@ -53,8 +53,8 @@ typedef struct {
#define NUM_OF_CHANNELS 3
typedef struct {
uint8_t taskId;
uint8_t numOfMelodies;
bool firstRun;
uint8_t numOfMelodies;
uint8_t pace; // quarter notes per minute
uint8_t sync;
t_melody melodies[NUM_OF_CHANNELS];