-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
49 lines (43 loc) · 919 Bytes
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <stdio.h>
#include <unistd.h>
#include "beat.h"
#include "led.h"
#include "display.h"
#include "game.h"
#include "input.h"
#include "score_display.h"
#include "processFrame.h"
#include <stdlib.h>
// #include <unistd.h>
#include <time.h>
#include "audio_recorder.h"
#include "playback.h"
int main() {
int result = LED_init();
if (result > 0)
return 0;
result = Display_init((2000*1000000)/16);
if (result > 0)
return 0;
Input_init();
Game_init();
AudioRecorder_init();
Beat_init();
ProcessFrame_init();
score_starter();
Playback_init();
volatile int haha = 0;
while (1) {
haha++;
// if (haha > 400000000) exit(1);
}
LED_cleanup();
Display_cleanup();
Input_cleanup();
Game_cleanup();
AudioRecorder_cleanup();
ProcessFrame_cleanup();
score_stop();
Playback_cleanup();
return 0;
}