Skip to content

Instantly share code, notes, and snippets.

View Daft-Freak's full-sized avatar
🧙

Charlie Birks Daft-Freak

🧙
View GitHub Profile
@Daft-Freak
Daft-Freak / config.h
Created January 20, 2025 12:32
32blit-pico config
// input gpio
#define BUTTON_LEFT_PIN -1
#define BUTTON_RIGHT_PIN -1
#define BUTTON_UP_PIN -1
#define BUTTON_DOWN_PIN -1
#define BUTTON_A_PIN -1
#define BUTTON_B_PIN -1
#define BUTTON_X_PIN -1
#define BUTTON_Y_PIN -1
#define BUTTON_MENU_PIN -1
@Daft-Freak
Daft-Freak / rg35xx-h-notes-v1.1.4.md
Last active July 11, 2024 14:59
RG35XX H Adventures

V1.1.4-240626

Setup

OS based on Ubuntu 22.04 with kernel 4.9. Maybe a little old...

Linux rootfs has a copy of qemu-user-static, seems they want me to chroot into it.

sudo mkdir /mnt/rg35xx
function unpackImage(buf) {
const bytes = new Uint8Array(buf);
const byteCount = new Uint32Array(buf.slice(8, 12))[0];
const width = bytes[12] | (bytes[13] << 8);
const height = bytes[14] | (bytes[15] << 8);
const format = bytes[16];
const paletteEntryCount = bytes[17];
@Daft-Freak
Daft-Freak / 32blit.cfg
Created December 7, 2020 23:26
32Blit OpenOCD VS Code
# 32blit configuration - modified from nucleo-h743zi.cfg
source [find interface/stlink.cfg]
transport select hla_swd
set CHIPNAME stm32h750vbz
# enable stmqspi
if {![info exists QUADSPI]} {
3.0
ARB_color_buffer_float yes
ARB_depth_buffer_float yes
ARB_half_float_vertex yes
ARB_map_buffer_range yes
ARB_shader_texture_lod yes
ARB_texture_float yes
ARB_texture_rg yes
ARB_texture_compression_rgtc no
EXT_draw_buffers2 yes
/*
Copyright (C) 1997-2017 Sam Lantinga <[email protected]>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely.
/*
* Copyright 2014 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
/*
THIS WORK, INCLUDING THE SOURCE CODE, DOCUMENTATION
AND RELATED MEDIA AND DATA, IS PLACED INTO THE PUBLIC DOMAIN.
@Daft-Freak
Daft-Freak / Makefile
Last active August 29, 2015 14:21 — forked from whistlegraph/Makefile
OBJS = ios-audio.c
OBJ_NAME = "ios-audio"
mac:
mkdir -p builds/native/mac
gcc -Wall -o $(OBJ_NAME) $(OBJS) `sdl2-config --cflags --libs`;
mv $(OBJ_NAME) builds/native/mac
web:
mkdir -p builds/html
@Daft-Freak
Daft-Freak / testfilesystem.c
Created June 11, 2014 19:09
sdl2 testfilesystem without sdl
/*
Copyright (C) 1997-2014 Sam Lantinga <[email protected]>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely.