gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Touchscreen calibration and other settings

#38192 - darkfader - Wed Mar 23, 2005 9:37 pm

The calibration settings are stored at 0x23FFCD8. Like 12/16 bytes.
First calibration: (normal)
D0 01 F0 01 10 10 D8 0D F0 0D F0 B0 01 FC 00 02
Second calibration: (more towards the center)
98 03 E8 04 20 20 10 0C 4C 0B E0 A0 01 FC 00 02
Now we need to find how to use these values :)

Here a list of found settings that are loaded into RAM:

0x27FFC83, 1 byte, birthday month
0x27FFC84, 1 byte, birthday day
0x27FFC86, 20 bytes, name, UTF-16?
0x27FFC9C, 52 bytes, message, UTF-16?
0x27FFC82, 1 byte, color (0-15), TODO: need to make a list of colors
0x27FFCD0, 1/2 bytes, length of message in characters
0x27FFC9A, 1/2 bytes, length of name in characters
0x27FFCD2, 1 byte, alarm hour
0x27FFCD3, 1 byte, alarm minute
0x27FFCD8, 12/16 bytes?, touch-screen calibration

note... 0x23FFCxx are the same if you happen to have only 4MB ;P

#38203 - assassda - Wed Mar 23, 2005 11:14 pm

<3 im glad you havent left the scene and are still releasing useful information

what does this mean?
Quote:
note... 0x23FFCxx are the same if you happen to have only 4MB ;P

#38210 - Darkain - Thu Mar 24, 2005 12:53 am

colours appear to follow the order they are in the setup gui:

http://ds.darkain.com/setup005.JPG

Code:

0x00: Gray
0x01: Maroon
0x02: Red
0x03: Pink

0x04: Orange
0x05: Yellow
0x06: Lime
0x07: Green

0x08: Dark Green
0x09: Teal
0x0A: Light Blue
0x0B: Blue

0x0C: Dark Blue
0x0D: Dark Purple
0x0E: Light Purple
0x0F: Dark Pink



As for the screen calibration, i get:
98 02 20 03 20 20 38 0D CC DC E0 A0 01 FC 05 7E
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS

#38214 - Darkain - Thu Mar 24, 2005 1:31 am

i just horribly fawked up my callibration on purpose.. basically, my touch screen area is maybe 16x16 pixels in size now :P

00 07 CC 06 20 20 C0 08 14 09 E0 A0 01 FC 05 7E


using the far corners of the screen, i get:

FC 00 FC 00 20 20 D8 0E 08 0F E0 A0 01 FC 05 7E


and back to normal:

78 02 40 03 20 20 18 0D E8 0C E0 A0 01 FC 05 7E
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS

#38329 - PhoenixSoft - Sat Mar 26, 2005 9:44 am

Is it possible to change the settings from a homebrew program? If so, would it be possible to find a buffer overflow and effectively create a permanent software PassMe?