Poke_Transporter_GB/include/gameboy_colour.h
2023-06-14 21:12:58 -05:00

35 lines
923 B
C++

//Created by StevenChaulk? https://github.com/stevenchaulk/arduino-poke-gen2
#ifndef GAMEBOY_COLOUR_H_
#define GAMEBOY_COLOUR_H_
#include <tonc.h>
#include <string>
#include "LinkGPIO.h"
/*
#define LINK_SPI_NO_DATA 0xffffffff
#define LINK_SPI_SIOCNT_NORMAL 0
#define LINK_SPI_BIT_CLOCK 0
#define LINK_SPI_BIT_CLOCK_SPEED 1
#define LINK_SPI_BIT_SI 2
#define LINK_SPI_BIT_SO 3
#define LINK_SPI_BIT_START 7
#define LINK_SPI_BIT_LENGTH 12
#define LINK_SPI_BIT_IRQ 14
#define LINK_SPI_BIT_GENERAL_PURPOSE_LOW 14
#define LINK_SPI_BIT_GENERAL_PURPOSE_HIGH 15
#define LINK_SPI_SET_HIGH(REG, BIT) REG |= 1 << BIT
#define LINK_SPI_SET_LOW(REG, BIT) REG &= ~(1 << BIT)
#define LINK_SPI_SET(REG, BIT, VALUE) VALUE ? LINK_SPI_SET_HIGH(REG, BIT) : LINK_SPI_SET_LOW(REG, BIT)
*/
void setup();
byte handleIncomingByte(byte in);
void transferBit(void);
void loop();
std::string outHexStr(vu8 inputNum);
#endif /* GAMEBOY_COLOUR_H_ */