A way to distinguish DS version?

Post Reply
Oranj
Posts: 5
Joined: Wed Jan 05, 2011 6:36 pm

A way to distinguish DS version?

Post by Oranj » Sat Feb 05, 2011 7:28 am

Please, tell me, it's important.
I have this relict which works but since there are other versions now I need an update.
#define PM_DSLITE_REG (4)
#define PM_IS_LITE BIT(6)
if((readPowerManagement(PM_DSLITE_REG) & PM_IS_LITE)) //Lite
else //Phat
And if there's a facility to do this from ARM9 code, it would be better!

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: A way to distinguish DS version?

Post by WinterMute » Sat Feb 05, 2011 12:36 pm

Actually, no, this isn't important. If you think it is then you're doing something wrong.

Well written homebrew should never need to care about which particular DS model it's running on.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Oranj
Posts: 5
Joined: Wed Jan 05, 2011 6:36 pm

Re: A way to distinguish DS version?

Post by Oranj » Sat Feb 05, 2011 1:15 pm

Well I'm writing an ebook reader with subpixel font rendering and screens of different DS versions have different subpixel alighnment (RGB / BGR).
I added an option to change rendering manually but users are still getting confused and read blurred text.
Is this good enough point to ask for a couple of lines of code?

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: A way to distinguish DS version?

Post by WinterMute » Sat Feb 05, 2011 3:15 pm

The subpixel alignment seems to depend more on time of manufacture and whether or not the LCD has been replaced than any particular model, unfortunately it's not as simple as phat vs lite. Do you have some test code that will show the difference by any chance? It might be worth checking DSi & DSiXL too but I'm really not convinced you could do much better than provide a means to switch the rendering while viewing text.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Oranj
Posts: 5
Joined: Wed Jan 05, 2011 6:36 pm

Re: A way to distinguish DS version?

Post by Oranj » Fri Feb 11, 2011 8:08 pm

Thanks for willing to help! I don't think that a lot of people replace their screens, and that worked for moonshell back when there were only Phat and Lite. To see the difference you could just download the whole reader. It's located at http://code.google.com/p/ikureader/ . There's a button called "Sharpness" in the menu, there you can swap the subpixels.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 13 guests