git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 71a2398278fe7301554e2c4014cbfafc8813e1f5
parent 5acc7cfbaedea25ae33c6fd6344735fefcf424d2
Author: bbbbbr <bbbbbr@users.noreply.github.com>
Date:   Fri,  9 May 2025 12:10:15 -0700

Merge pull request #775 from bbbbbr/example/mbc7_note

Examples: MBC7 GBC 2x speed note
Diffstat:
Mgbdk-lib/examples/gb/mbc7_accelerometer/Readme.md7++++++-
Mgbdk-lib/examples/gb/mbc7_accelerometer/src/mbc7_accelerometer.c6++++++
2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/gbdk-lib/examples/gb/mbc7_accelerometer/Readme.md b/gbdk-lib/examples/gb/mbc7_accelerometer/Readme.md @@ -26,7 +26,12 @@ Some example ranges for the sensor data: ``` Slow rotation, measuring mostly the pull earth's gravity when the sensor not flat. -The range is for a full rotation of 90 degrees from flat +The range is for a full rotation of 90 degrees from flat. + +Note: The ranges below are for regular single-speed +processor mode. In GBC Double-speed mode there appears +to be an offset of around +440 on the X axis and +480 +on the axis when the cart is flat/centered. X: Left Centered Right 0x8230 <------- 0x81BC -------> 0x8148 diff --git a/gbdk-lib/examples/gb/mbc7_accelerometer/src/mbc7_accelerometer.c b/gbdk-lib/examples/gb/mbc7_accelerometer/src/mbc7_accelerometer.c @@ -19,6 +19,12 @@ // Accelerometer Sensor data ranges // +// These ranges are for regular single-speed +// processor mode. In GBC Double-speed mode +// there appears to be an offset of +440 on +// the X axis and +480 on the axis when the +// cart is flat/centered. +// // Slow rotation, measuring mostly the pull // earth's gravity when the sensor not flat. //

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.