Almost working SPI

This commit is contained in:
Starport75
2023-06-14 21:12:58 -05:00
parent 1948cde3dd
commit 2f64ad5efc
4 changed files with 92 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
#include <string>
#include "mirror.h"
#include "gba_flash.h"
#include "debug.h"
char arr[16] = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};

View File

@@ -8,6 +8,7 @@
#include "LinkSPI.h"
#include "gb_link.h"
#include "gameboy_colour.h"
#include "LinkGPIO.h"
// This file is autogenerated from the file in the graphics folder
#include "metr.h"
@@ -76,6 +77,9 @@ void load_sprite(void)
int main(void)
{
linkGPIO->reset();
REG_DISPCNT = DCNT_MODE0 | DCNT_BG0 | DCNT_OBJ | DCNT_OBJ_1D;
tte_init_se_default(0, BG_CBB(0) | BG_SBB(31));