Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

OLED layout overhaul and initial splashscreen support #44

Merged
merged 4 commits into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
],
"unwantedRecommendations": [
"ms-vscode.cpptools-extension-pack"
]
}
3 changes: 3 additions & 0 deletions configs/Pico/BoardConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

#define DEFAULT_SOCD_MODE SOCD_MODE_NEUTRAL
#define BUTTON_LAYOUT BUTTON_LAYOUT_ARCADE
#define BUTTON_LAYOUT_RIGHT BUTTON_LAYOUT_VEWLIX

#define SPLASH_MODE STATICSPLASH

#define TURBO_LED_PIN 15

Expand Down
18 changes: 18 additions & 0 deletions include/addons/i2cdisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,24 @@ class I2CDisplayAddon : public GPAddon
void drawStatusBar();
void drawText(int startX, int startY, std::string text);
void initMenu(char**);
//Adding my stuff here, remember to sort before PR
void drawDiamond(int cx, int cy, int size, uint8_t colour, uint8_t filled);
void drawUDLR(int startX, int startY, int buttonRadius, int buttonPadding);
void drawMAMEA(int startX, int startY, int buttonSize, int buttonPadding);
void drawMAMEB(int startX, int startY, int buttonSize, int buttonPadding);
void drawMixBox(int startX, int startY, int buttonRadius, int buttonPadding);
void drawVewlix(int startX, int startY, int buttonRadius, int buttonPadding);
void drawVewlix7(int startX, int startY, int buttonRadius, int buttonPadding);
void drawSega2p(int startX, int startY, int buttonRadius, int buttonPadding);
void drawNoir8(int startX, int startY, int buttonRadius, int buttonPadding);
void drawCapcom(int startX, int startY, int buttonRadius, int buttonPadding);
void drawCapcom6(int startX, int startY, int buttonRadius, int buttonPadding);
void drawHitboxButtons(int startX, int startY, int buttonRadius, int buttonPadding);
void drawWasdButtons(int startX, int startY, int buttonRadius, int buttonPadding);
void drawArcadeButtons(int startX, int startY, int buttonRadius, int buttonPadding);
void drawSplashScreen(int splashMode, int splashSpeed);
void drawDancepadA(int startX, int startY, int buttonSize, int buttonPadding);
void drawDancepadB(int startX, int startY, int buttonSize, int buttonPadding);
uint8_t ucBackBuffer[1024];
OBDISP obd;
std::string statusBar;
Expand Down
176 changes: 176 additions & 0 deletions include/bitmaps.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
// Hard coded default
const unsigned char splashImage[] = {
// 'canvas', 128x64px
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x9f, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xdf, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0xcc, 0xde, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x81, 0x98, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x80, 0x3d, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x01, 0xbf, 0xd8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xdb, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc1, 0xbc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x7f, 0xf7, 0xff, 0x0f, 0xfc, 0x0f, 0x83, 0xc3, 0xc1, 0xf0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0xf7, 0xff, 0x9f, 0xfe, 0x3f, 0xe3, 0xc3, 0xc7, 0xfc, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0xf7, 0xff, 0x9f, 0xfe, 0x7f, 0xf3, 0xc3, 0xcf, 0xfe, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0xf7, 0xff, 0xdf, 0xfe, 0x7f, 0xf3, 0xc3, 0xcf, 0xfe, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0xf7, 0x87, 0xde, 0x1e, 0xf8, 0xf3, 0xc3, 0xcf, 0x1f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0xf7, 0x87, 0xde, 0x1e, 0xf8, 0xfb, 0xc3, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0x07, 0x87, 0xde, 0x1e, 0xf0, 0x7b, 0xc3, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0x07, 0x87, 0xc0, 0x3e, 0xf0, 0x7b, 0xc3, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf3, 0xf7, 0xff, 0xc0, 0x7e, 0xf0, 0x7b, 0xff, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf3, 0xf7, 0xff, 0x81, 0xfc, 0xf0, 0x7b, 0xff, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf3, 0xf7, 0xff, 0x83, 0xf8, 0xf0, 0x7b, 0xff, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf3, 0xf7, 0xff, 0x0f, 0xe0, 0xf0, 0x79, 0xff, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0xf7, 0x80, 0x1f, 0xc0, 0xf0, 0x78, 0x03, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0xf7, 0x80, 0x1f, 0x80, 0xf0, 0x78, 0x03, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0xf7, 0x80, 0x1e, 0x1e, 0xf0, 0x78, 0x03, 0xdf, 0x0f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0xf7, 0x80, 0x1e, 0x1e, 0xf8, 0xf8, 0x03, 0xdf, 0x1f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0xf7, 0x80, 0x1f, 0xfe, 0x7f, 0xf0, 0x03, 0xcf, 0xfe, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0xf7, 0x80, 0x1f, 0xfe, 0x7f, 0xf0, 0x03, 0xcf, 0xfe, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0xf7, 0x80, 0x1f, 0xfe, 0x3f, 0xe0, 0x03, 0xc7, 0xfc, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x7f, 0xe7, 0x80, 0x1f, 0xfe, 0x1f, 0xc0, 0x03, 0xc3, 0xf8, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x3f, 0x87, 0x80, 0x1f, 0xfe, 0x0f, 0x80, 0x03, 0xc0, 0xf0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

// Split up images for boot animation without a huge byte array.
const unsigned char bootLogoTop[] = {
// 'gp2040logot', 43x39px
0x00, 0x00, 0x3f, 0x80, 0x00, 0x00, 0x00, 0x01, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x07, 0xff, 0xfc,
0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xc0, 0x00, 0x0f, 0xff,
0xff, 0xff, 0xfe, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x20,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00,
0x00, 0x00, 0x06, 0x7f, 0x80, 0x00, 0x00, 0x00, 0x0f, 0x7f, 0xb0, 0x00, 0x00, 0x1c, 0x0f, 0x33,
0x78, 0x00, 0x00, 0x3e, 0x06, 0x60, 0x78, 0x00, 0x00, 0x3e, 0x00, 0xf6, 0x30, 0x00, 0x00, 0x1c,
0x06, 0xff, 0x60, 0x00, 0x00, 0x00, 0x0f, 0x6f, 0xf0, 0x00, 0x00, 0x00, 0x0f, 0x06, 0xf0, 0x00,
0x00, 0x00, 0x06, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
0x00, 0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x40, 0x60, 0x00,
0x00, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x30, 0x00, 0x00, 0x00, 0x01, 0x80,
0x1f, 0xff, 0xff, 0xff, 0xff, 0x00, 0x07, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x7f, 0xff, 0xff,
0xc0, 0x00, 0x00, 0x1f, 0xff, 0xff, 0x00, 0x00, 0x00, 0x07, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x01,
0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00
};
const unsigned char bootLogoBottom[] = {
// 'gp2040logotb', 80x21px
0x7f, 0xf7, 0xff, 0x0f, 0xfc, 0x0f, 0x83, 0xc3, 0xc1, 0xf0, 0xff, 0xf7, 0xff, 0x9f, 0xfe, 0x3f,
0xe3, 0xc3, 0xc7, 0xfc, 0xff, 0xf7, 0xff, 0x9f, 0xfe, 0x7f, 0xf3, 0xc3, 0xcf, 0xfe, 0xff, 0xf7,
0xff, 0xdf, 0xfe, 0x7f, 0xf3, 0xc3, 0xcf, 0xfe, 0xf0, 0xf7, 0x87, 0xde, 0x1e, 0xf8, 0xf3, 0xc3,
0xcf, 0x1f, 0xf0, 0xf7, 0x87, 0xde, 0x1e, 0xf8, 0xfb, 0xc3, 0xdf, 0x0f, 0xf0, 0x07, 0x87, 0xde,
0x1e, 0xf0, 0x7b, 0xc3, 0xdf, 0x0f, 0xf0, 0x07, 0x87, 0xc0, 0x3e, 0xf0, 0x7b, 0xc3, 0xdf, 0x0f,
0xf3, 0xf7, 0xff, 0xc0, 0x7e, 0xf0, 0x7b, 0xff, 0xdf, 0x0f, 0xf3, 0xf7, 0xff, 0x81, 0xfc, 0xf0,
0x7b, 0xff, 0xdf, 0x0f, 0xf3, 0xf7, 0xff, 0x83, 0xf8, 0xf0, 0x7b, 0xff, 0xdf, 0x0f, 0xf3, 0xf7,
0xff, 0x0f, 0xe0, 0xf0, 0x79, 0xff, 0xdf, 0x0f, 0xf0, 0xf7, 0x80, 0x1f, 0xc0, 0xf0, 0x78, 0x03,
0xdf, 0x0f, 0xf0, 0xf7, 0x80, 0x1f, 0x80, 0xf0, 0x78, 0x03, 0xdf, 0x0f, 0xf0, 0xf7, 0x80, 0x1e,
0x1e, 0xf0, 0x78, 0x03, 0xdf, 0x0f, 0xf0, 0xf7, 0x80, 0x1e, 0x1e, 0xf8, 0xf8, 0x03, 0xdf, 0x1f,
0xf0, 0xf7, 0x80, 0x1f, 0xfe, 0x7f, 0xf0, 0x03, 0xcf, 0xfe, 0xff, 0xf7, 0x80, 0x1f, 0xfe, 0x7f,
0xf0, 0x03, 0xcf, 0xfe, 0xff, 0xf7, 0x80, 0x1f, 0xfe, 0x3f, 0xe0, 0x03, 0xc7, 0xfc, 0x7f, 0xe7,
0x80, 0x1f, 0xfe, 0x1f, 0xc0, 0x03, 0xc3, 0xf8, 0x3f, 0x87, 0x80, 0x1f, 0xfe, 0x0f, 0x80, 0x03,
0xc0, 0xf0
};

// Replicating user uploaded image. Uncomment to test.
const unsigned char splashCustom[] = {
/*
// 'im numbah 1', 128x64px
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xdf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc3, 0x67, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x86, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2c, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x2d, 0xbe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xf0, 0x03, 0x6d, 0xbf, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xc3, 0x08, 0x7d, 0xf7, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0x10, 0x02, 0x00, 0xfb, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xfc, 0x40, 0x00, 0x1e, 0x3b, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xf9, 0x00, 0x00, 0x1f, 0xbb, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xff,
0xff, 0xff, 0xfc, 0x00, 0x00, 0x78, 0x1f, 0x8b, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x0f, 0xff,
0xff, 0xff, 0xc0, 0xc8, 0x01, 0xec, 0x1f, 0x37, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x0f, 0xff,
0xff, 0xff, 0x1f, 0x80, 0x03, 0xda, 0x0c, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xce, 0x0f, 0xff,
0xff, 0xfc, 0x7f, 0x00, 0x03, 0xfd, 0x0f, 0x7f, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xc6, 0x0f, 0xff,
0xff, 0xf1, 0xfe, 0x00, 0x03, 0xb7, 0x0f, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xc7, 0x0f, 0xff,
0xff, 0xe7, 0xc0, 0x00, 0x07, 0xe9, 0x0f, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xe3, 0xe3, 0x0f, 0xff,
0xff, 0xc8, 0x00, 0x00, 0x03, 0x6f, 0x0f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xe3, 0xe3, 0x0f, 0xff,
0xff, 0x9b, 0x80, 0x00, 0x03, 0x5f, 0x13, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xe3, 0xc1, 0x8f, 0xff,
0xff, 0x7b, 0xc0, 0x00, 0x00, 0x1e, 0x17, 0xff, 0x7f, 0xff, 0xff, 0xf0, 0xe3, 0x00, 0xff, 0xff,
0xfe, 0xfb, 0xe0, 0x00, 0x00, 0x00, 0x17, 0xff, 0x7f, 0xff, 0xff, 0xe0, 0x32, 0x18, 0x67, 0xff,
0xfc, 0xfb, 0xf0, 0x00, 0x00, 0x00, 0x33, 0xfc, 0xff, 0xff, 0xff, 0xc7, 0x10, 0x7c, 0x47, 0xff,
0xf9, 0xfb, 0x78, 0x2e, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xe7, 0x8f, 0x98, 0xfe, 0x2f, 0xff,
0xfb, 0xf9, 0x78, 0x27, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xe3, 0x9f, 0x88, 0xff, 0x3f, 0xff,
0xf3, 0xfd, 0xb4, 0x77, 0x8f, 0x00, 0x00, 0x01, 0xff, 0xff, 0xe3, 0x9f, 0x04, 0x7f, 0xff, 0xff,
0xf0, 0x05, 0xc8, 0x5f, 0xcf, 0xc0, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x9c, 0x06, 0x3f, 0xff, 0xff,
0xe0, 0x02, 0xc8, 0xdf, 0xcf, 0xe0, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x98, 0x62, 0x3f, 0xff, 0xff,
0xe0, 0x00, 0xe8, 0x1f, 0xed, 0xe0, 0x00, 0x00, 0xff, 0xc7, 0xf8, 0x81, 0xf3, 0xff, 0xff, 0xff,
0xc0, 0x01, 0x70, 0x1e, 0x65, 0x9c, 0x5c, 0x00, 0xff, 0xc7, 0xf8, 0xc3, 0xff, 0xff, 0xff, 0xff,
0xc0, 0x01, 0x50, 0x36, 0x73, 0x33, 0xcc, 0x00, 0xff, 0xc7, 0xcc, 0x47, 0xff, 0xff, 0xff, 0xff,
0xc0, 0x00, 0xf0, 0x7d, 0xc2, 0x7b, 0xec, 0x00, 0xff, 0xc7, 0x84, 0x67, 0xff, 0xff, 0xff, 0xff,
0xc0, 0x00, 0xf0, 0xfb, 0xd8, 0x27, 0xac, 0x00, 0xff, 0xc3, 0x80, 0x67, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x7a, 0x1f, 0xd7, 0x57, 0xec, 0x01, 0xff, 0xe3, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x76, 0x6f, 0xbb, 0xa7, 0xe4, 0x01, 0xff, 0xe1, 0x18, 0x7f, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x36, 0x37, 0x7f, 0x97, 0x64, 0x01, 0xff, 0xf0, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x0e, 0x37, 0x7f, 0xc7, 0xf6, 0x01, 0xff, 0xf8, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff,
0xb8, 0x00, 0x0c, 0x00, 0x3f, 0xfe, 0xf6, 0x01, 0xff, 0xfc, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff,
0xb0, 0x00, 0x08, 0x00, 0x07, 0xfc, 0xf6, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xa0, 0x00, 0x18, 0x3f, 0x7b, 0xe0, 0x06, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xa0, 0x00, 0x18, 0x07, 0x8b, 0xe0, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x16, 0x03, 0xf1, 0xe0, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x80, 0x00, 0x17, 0x00, 0xfd, 0xc0, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xc0, 0x00, 0x17, 0xe0, 0x18, 0xc0, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xc0, 0x00, 0x1b, 0xf8, 0x00, 0xc0, 0x00, 0x03, 0xc7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xc0, 0x00, 0x1c, 0x7c, 0x00, 0x00, 0x00, 0x03, 0xec, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xc0, 0x80, 0x0f, 0x87, 0x00, 0x00, 0x00, 0x07, 0xed, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xe0, 0xc0, 0x07, 0xf8, 0xe0, 0x00, 0x01, 0x8f, 0xed, 0x87, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff,
0xe1, 0xc0, 0x01, 0xff, 0x20, 0x1f, 0x9f, 0xff, 0xed, 0xb6, 0x3d, 0xdf, 0xff, 0xff, 0xff, 0xff,
0xf3, 0xc0, 0x01, 0xff, 0xcf, 0xff, 0xbf, 0xff, 0xed, 0xf6, 0xd5, 0xda, 0x61, 0xff, 0xff, 0xff,
0xf3, 0x80, 0x00, 0xf9, 0xe7, 0xff, 0x3f, 0xff, 0x85, 0xee, 0xd5, 0xd0, 0x5d, 0xef, 0xff, 0xff,
0xfb, 0x00, 0x00, 0xff, 0x8f, 0xff, 0x7f, 0xff, 0xff, 0xee, 0xd5, 0xad, 0x5d, 0x86, 0xef, 0xff,
0xf8, 0x00, 0x00, 0x7f, 0xbf, 0xfe, 0xff, 0xff, 0xff, 0xee, 0xc5, 0xab, 0x43, 0x35, 0xcf, 0xbf,
0xfc, 0x00, 0x00, 0x7f, 0xbf, 0xfc, 0xff, 0xff, 0xff, 0xfe, 0xec, 0x2b, 0x5d, 0x75, 0xdf, 0xbf,
0xfe, 0x00, 0x00, 0x3f, 0x9f, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x6f, 0x5d, 0x44, 0x1f, 0xbf,
0xff, 0x00, 0x00, 0xbf, 0x9f, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x41, 0x75, 0xdf, 0x3f,
0xff, 0x80, 0x01, 0xdf, 0x9f, 0xe7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe3, 0x75, 0xdf, 0x7f,
0xff, 0xc0, 0x39, 0xdf, 0x9f, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xde, 0x7f,
0xff, 0xe0, 0x1b, 0xef, 0xbf, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xde, 0xff,
0xff, 0xf0, 0x33, 0xf0, 0x3e, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff,
0xff, 0xfc, 0x27, 0xff, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0x0f, 0xff, 0xc3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xe0, 0xfc, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfc, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
*/
};
27 changes: 27 additions & 0 deletions include/enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,35 @@ typedef enum
BUTTON_LAYOUT_ARCADE,
BUTTON_LAYOUT_HITBOX,
BUTTON_LAYOUT_WASD,
BUTTON_LAYOUT_UDLR,
BUTTON_LAYOUT_MIXBOX,
BUTTON_LAYOUT_MAMEA,
BUTTON_LAYOUT_DANCEPADA,
} ButtonLayout;

typedef enum
{
BUTTON_LAYOUT_ARCADEB,
BUTTON_LAYOUT_HITBOXB,
BUTTON_LAYOUT_WASDB,
BUTTON_LAYOUT_VEWLIX,
BUTTON_LAYOUT_VEWLIX7,
BUTTON_LAYOUT_CAPCOM,
BUTTON_LAYOUT_CAPCOM6,
BUTTON_LAYOUT_SEGA2P,
BUTTON_LAYOUT_NOIR8,
BUTTON_LAYOUT_MAMEB,
BUTTON_LAYOUT_DANCEPADB,
} ButtonLayoutRight;

typedef enum
{
STATICSPLASH,
CLOSEIN,
CLOSEINCUSTOM,
NOSPLASH,
} SplashMode;

typedef enum
{
CONFIG_TYPE_WEB = 0,
Expand Down
Loading