diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -6,6 +6,7 @@ | |||
6 | #include "sprites.h" | 6 | #include "sprites.h" |
7 | #include "text.h" | 7 | #include "text.h" |
8 | #include "sequencer.c" | 8 | #include "sequencer.c" |
9 | #include "bd-font.c" | ||
9 | 10 | ||
10 | // | 11 | // |
11 | // Main functions. | 12 | // Main functions. |
@@ -14,14 +15,13 @@ | |||
14 | // TODO: Cleanup OBJ/OAM memory copying and access. | 15 | // TODO: Cleanup OBJ/OAM memory copying and access. |
15 | // | 16 | // |
16 | 17 | ||
17 | |||
18 | int main(void) { | 18 | int main(void) { |
19 | // Configure the display in mode 0 to show OBJs, where tile memory is | 19 | // Configure the display in mode 0 to show OBJs, where tile memory is |
20 | // sequential. | 20 | // sequential. |
21 | DISP_CTRL = DISP_ENABLE_SPRITES | DISP_MODE_3 | DISP_BG_2; | 21 | DISP_CTRL = DISP_ENABLE_SPRITES | DISP_MODE_3 | DISP_BG_2; |
22 | 22 | ||
23 | // Initialize text engine. | 23 | // Initialize text engine. |
24 | // txt_init(0, COLOR_RED, 0); | 24 | txt_init_bitmap(TXT_MODE_MODE3, (Font){.data = bd_font, .char_width = 6}); |
25 | 25 | ||
26 | // Register interrupts. | 26 | // Register interrupts. |
27 | irq_init(); | 27 | irq_init(); |
@@ -37,16 +37,6 @@ int main(void) { | |||
37 | handle_sequencer_input(); | 37 | handle_sequencer_input(); |
38 | update_sequencer_sprites(); | 38 | update_sequencer_sprites(); |
39 | render_sequencer_sprites(); | 39 | render_sequencer_sprites(); |
40 | |||
41 | // DEBUG: Output | ||
42 | // txt_position(1,0); | ||
43 | // txt_clear_line(); | ||
44 | // txt_printf(" BPM: %d\n\n", bpm); | ||
45 | |||
46 | // txt_clear_line(); | ||
47 | // txt_printf(" Step: %d\n", step_counter); | ||
48 | // txt_clear_line(); | ||
49 | // txt_printf(" Note: %s\n", note_names[active_note]); | ||
50 | }; | 40 | }; |
51 | 41 | ||
52 | return 0; | 42 | return 0; |