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 Misc > LoveLite (with source) - adjust your brightness!

#106718 - Lick - Sun Oct 22, 2006 11:13 pm

Update: LoveLite-1.1 is released. It's better for your hardware.

Detailed post
http://licklick.wordpress.com/2006/10/22/lovelite/

Project name:
LoveLite - actually (Love)Lite. But it?s easier without the paranthesis. No I'm not a hippy, I'm in love. =D

Screenshot:
http://licklick.wordpress.com/files/2006/10/lovelitescreenshot.png

Description:
LoveLite allows you to permanently (that is: power-off-proof) adjust your Lite brightness setting. It?s a project that came out of an earlier experiment (see below). There?s also a very sensitive Power Off button so you don?t have to push the powerbutton (the real one) twice.
I never ran ALite, but I heard that ALite doesn?t permanently save the brightness. So I made LoveLite.

Download
http://lick.huuf.net/LoveLite-1.1.zip (Updated)


Enjoy!
- Lick
_________________
http://licklick.wordpress.com


Last edited by Lick on Mon Oct 23, 2006 12:05 am; edited 1 time in total

#106721 - heyyouguys - Sun Oct 22, 2006 11:51 pm

Nice work! Will you incorporate this into dsliveweather as well?

#106723 - Lick - Mon Oct 23, 2006 12:07 am

heyyouguys: it's already implemented, but I'm actually considering removing it as it might be bad for your hardware when the value is written each and everytime you press the sun-icon. That's the reason why I released LoveLite-1.1, so people can play with the brightness, but save to hardware only ONCE!

Thanks for the feedback,
- Lick
_________________
http://licklick.wordpress.com

#106726 - heyyouguys - Mon Oct 23, 2006 12:17 am

Sounds like your hesitation is a good hesitation and having a seperate write once after you have chosen what you want is a good idea. I guess you could do some sort of pull down or submenu for dslw then have a final save. Though not worth the trouble.

#106728 - dLHa - Mon Oct 23, 2006 12:53 am

Thank you.

Now I don't have to remove my passcard to change my brightness settings. :D

#106762 - heyyouguys - Mon Oct 23, 2006 6:31 am

Lick, when I go to touch the different settings, it is spiratic (sp?) if it takes the change in brightness. I tap and nothing happens part of the time, soft or hard taps.

#106776 - Lick - Mon Oct 23, 2006 9:53 am

Yeah I noticed. The best way to do this is to hold the stylus down till you see something happening. Thanks for reporting it! I'll see what I can do.

- Lick
_________________
http://licklick.wordpress.com

#106782 - TheYak - Mon Oct 23, 2006 10:27 am

Is the target the full size of the square or just a corner? It seems I've got to hit the severe right of it for it to have any effect. Calibration seems fine for everything else (like DSLW, DSO, etc.)

Once I found where to tap, works like a charm. Thank you!

#106784 - Lick - Mon Oct 23, 2006 10:54 am

It should be the whole square. I'm working on 1.2 to improve the input as well as adding ReturnToSupercard.
_________________
http://licklick.wordpress.com

#107133 - felix123 - Fri Oct 27, 2006 12:17 am

yyjoy (a China forum) users are reporting that using it on a iQue DSL bricks the machine. It will only show 2 white screens at power on afterwards. It happened to at least 3 people. They believe it is related to this line:
Code:
Write_Flash(0x3FE00, usersettings, 0x100);

They also report there are graphics glitches on EZ4.
original post

HKCC (a Hong Kong forum) users are reporting that there are bugs on DSL with M3L.
*Graphics glitches on top screen
*Power off on touchscreen doesn't work
*Other firmware settings (like name) lost when you power back on
original post

And there's a belief that this software is for SuperCard only due to your "(Maybe) ?Return to Supercard? button" comment.

If you need help communicating with them please tell me.

#107153 - josath - Fri Oct 27, 2006 7:08 am

felix123 wrote:
yyjoy (a China forum) users are reporting that using it on a iQue DSL bricks the machine. It will only show 2 white screens at power on afterwards. It happened to at least 3 people. They believe it is related to this line:
Code:
Write_Flash(0x3FE00, usersettings, 0x100);

They also report there are graphics glitches on EZ4.
original post

HKCC (a Hong Kong forum) users are reporting that there are bugs on DSL with M3L.
*Graphics glitches on top screen
*Power off on touchscreen doesn't work
*Other firmware settings (like name) lost when you power back on
original post

And there's a belief that this software is for SuperCard only due to your "(Maybe) ?Return to Supercard? button" comment.

If you need help communicating with them please tell me.


Maybe IQU DS holds the user settings in a different location? Hopefully they had flashme installed.

#107181 - Lick - Fri Oct 27, 2006 1:07 pm

Bricked iQue DSL
Well, this sucks. I'm gonna check for iQue before writing to the firmware in the next version. I think it uses a different SPI procedure to write to flash, or the user settings are indeed located at another position.
So sorry for not knowing about this. So sorry. =(

Graphics glitches on EZ4
Yes, I fixed those already. And I added Return To OS for "some" EZ cards. When the next release is out, I will put together a table that tells which cards are supported.

Problems on the M3L
Graphics glitches: perhaps the same as the ones on EZ4. Hope they're fixed.
Power Off doesn't work: no idea.
Other firmware settings lost: that's crap. I'll see what I can do. Is this bug perhaps found on iQue, not normal DS?

Supercard only? No!
Nope, it's already supporting Supercard miniSD and EZFlash IV Lite!! I'm planning to have a broader device support.

Thanks for reporting all these bugs and fatal disasters. I will my best to fix them. Would you please tell those guys "Deu Bu Chi" or "Deu Mm Chuu". I know how it feels when your dear DS is broken. SORRY!

- Lick
_________________
http://licklick.wordpress.com

#107292 - ahtin - Sat Oct 28, 2006 8:29 am

I am ahtin from HKCC, I found the problem of M3l with DSL

this bug found from my JP NDSL with flashmeV7, Username and Birth-day have been reset but Date and Time doesnt change, I have to fill in the user setting again when I getting in NDS mode.
_________________
http://www.hacken.cc

#107299 - Lick - Sat Oct 28, 2006 9:56 am

Thanks ahtin! I will look at it.

- Lick
_________________
http://licklick.wordpress.com

#132505 - spinal_cord - Wed Jun 27, 2007 10:23 am

Is there an earlyer version of this, with only the light changing code? I'm not so good ant reading code, and finding the bits I need.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage

#132532 - olimar - Wed Jun 27, 2007 3:50 pm



Last edited by olimar on Wed Aug 20, 2008 10:41 pm; edited 1 time in total

#132538 - Lick - Wed Jun 27, 2007 5:20 pm

The iQue firmware is already supported. The saving code now validates the firmware location by checking the fw-version and something else (don't remember). If those values aren't like expected, the save code will terminate to avoid bricking.

Latest version is 1.4.

The brightness code: basically you tell the ARM7 to do this:
Code:
REG_IME = 0;
int r = readPowerManagement(4);

if (r & 64) {              // hw = lite?

    r &= ~3;
    writePowerManagement(4, r | level);        // level = 0,1,2,3

}
REG_IME = 1;


You have to make sure these calls aren't interrupted, so you have to disable interrupts before this and enable interrupts after this. Storing the brightness is a more advanced as it involves writing to the Flash memory where the firmware (!) is stored.
If you really have to, then check out the "NDSX_ARM7_StoreBrightness" function in "ndsx_brightness.h" in the 1.4 package. The file is located in "source.zip/common". Make sure you run your tests on a FlashMe'd DS.
_________________
http://licklick.wordpress.com

#132594 - spinal_cord - Thu Jun 28, 2007 12:47 am

Thanks for the info, I don't think I'll try to save the setting, I don't like the idea of writing to the firmware, not till I know what I'm doing.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage