#47656 - NEiM0D - Mon Jul 11, 2005 11:50 pm
Hi,
I've figured out how the LED works too, although I hear loopy has done this already.
Here's a demo that does software LED blinking:
http://neimod.com/leddemo.nds
Use UP/DOWN to increase or decrease the led delay count.
note: the hardware delay is fixed, so there is a maximum in led delay count.
And sourcecode:
http://www.rafb.net/paste/results/rQyvmk67.html
Cheers
#47669 - LOst? - Tue Jul 12, 2005 4:24 am
So what's those H files? I have never seen them before, or the memory mapped register names and defines.
_________________
Exceptions are fun
#47671 - rize - Tue Jul 12, 2005 5:05 am
I think neimod doesn't use the libnds or ndslib. He's using his own custom library. (Or I'm wrong).
#47672 - NEiM0D - Tue Jul 12, 2005 5:24 am
I am using my custom library.
However, everything I use can be found in DSTek.
#47693 - Ferakk - Tue Jul 12, 2005 12:43 pm
wow...Even tough it might sound a bit worthless it's really cool! But what could it be used for? Maybe some game where you have to be active and check the leds often...or...so xD No idea.
_________________
I dig.
#47697 - Cbass182 - Tue Jul 12, 2005 1:46 pm
Someone could make a game themed off of 1950s sci fi movie, called "The Thing: from another world" and use the LED for the light on the gieger counter...:)
(or any kind of game where...the closer you are to something the faster it blinks...like say if DoomDS project is ever actually done, the closer you get to an enemy or a specific area in the game that you need to be the faster it blinks. Or even finding secret items...the closer you are to the secret the faster it blinks...the uses are endless...)
#47737 - Abscissa - Tue Jul 12, 2005 10:30 pm
What LED is that you're talking about? Is it the power light, the charging light, or something else?
#47754 - Spaceface - Wed Jul 13, 2005 2:33 am
Abscissa wrote: |
What LED is that you're talking about? Is it the power light, the charging light, or something else? |
what he said
#47757 - drk42 - Wed Jul 13, 2005 3:09 am
There was a game for the Amiga, I believe it was Sword of Sodan, which would use Pulse Width Modulation (I think), and make the LED appear to fade in and out.
Would this be possible?
#47760 - Ferakk - Wed Jul 13, 2005 3:27 am
Cbass182 wrote: |
the closer you get to an enemy or a specific area in the game that you need to be the faster it blinks. Or even finding secret items...the closer you are to the secret the faster it blinks...the uses are endless...) |
Thats really good! Using it like a metal detector of some kind. More frequency the closer you are too your target. And you'll only notice the secret stuff if you are alert. (thumbs up) :)
_________________
I dig.
#47872 - shadow1w2 - Thu Jul 14, 2005 6:13 am
Use it for a packet sniffer thing.
Have the light blink faster when you get close to WiFi spots and other NDS's thats currently using WiFi. And ofcourse have it beep or say "THERES FREAKIN WIFI HERE DOOOOOOOD!"
Or make a hide and go seek like game that uses the WiFi to give clues along with the led flashing.
Or even have it flash for use with a real life game of pacman!
Or even better, I could make the light flash when a Server NDS is being hacked or when a client NDS is about to be traced in my NDS Hacker game I plan to make one day :3 Kinda like the PC game Uplink if you can find it, but for the NDS ^_^
#47878 - jstart - Thu Jul 14, 2005 7:16 am
OOH! Uplink for the ds! I Love that idea
You can count me in on that bandwagon!
Translated: I'd love to help with a ds uplink project
_________________
-=Jstart=-
#47896 - crossraleigh - Thu Jul 14, 2005 1:47 pm
Hi NEiM0D (and strager, and everyone else that has been using IRC pastebins on these forums).
From now on, please upload your work to something more permanent than IRC paste for those of us who can't snatch stuff the day it appears.
_________________
My world is black and white, but if I blink fast enough, I see it in grayscale.
#47907 - arog - Thu Jul 14, 2005 5:28 pm
Quote: |
From now on, please upload your work to something more permanent than IRC paste for those of us who can't snatch stuff the day it appears. |
You could always go to a site such as either of the following. They almost always have the files available for download.
http://nintendo-ds.dcemu.co.uk/
http://ndsupdates.com/
- Aaron Rogers
http://www.aaronrogers.com/nintendods/
#47972 - Lynx - Fri Jul 15, 2005 2:36 pm
I've also been posting them to ndshb.com news.
#48122 - chishm - Sun Jul 17, 2005 8:58 am
Does any one have the source to this demo, I can't seem to find it.
#48146 - arog - Sun Jul 17, 2005 5:25 pm
#77032 - knight0fdragon - Mon Mar 27, 2006 4:34 pm
ok now i got the LED to blink with libNDS, but I noticed that there is a double blink on the DS wifi games, and looking at nocash's information I noticed there were no bits to enable this either.... so does anyone know how to enable this feature, perhaps it is something that is wifi only?
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#77035 - Kturbo - Mon Mar 27, 2006 4:53 pm
Hehe, this means that they will have to put a LED on the emulators aswell ^^.
#77037 - knight0fdragon - Mon Mar 27, 2006 5:20 pm
well i am just using it for the wifi stuff
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#77041 - SeanMon - Mon Mar 27, 2006 6:56 pm
I haven't tried this yet, but according to [url="http://neimod.com/dstek/"]DSTek[/url]:
PM 0H - REG_PM_CONTROL - Powermanagement Control (Register 0h) (R/W)
Cpu Bit Name Expl.
7 0 Sound (Circuit) Power 0=Disable, 1=Enable
7 1 Sound (Circuit?) Volume 0=Disable, 1=Enable
7 2 Backlight Bottom LCD 0=Disable, 1=Enable
7 3 Backlight Top LCD 0=Disable, 1=Enable
7 4-5 Power LED Control 0..3=ON, ON, OFF(long) and ON(short), OFF(short) and ON(short)
7 6 DS System Power 0=Enable, 1=Disable
I'm guessing that setting bits 4-5 to 11 would make it blink like you want, but, as I said, I haven't tried it yet
#77044 - knight0fdragon - Mon Mar 27, 2006 7:02 pm
blinkin is not the issue, its the double blink id like that is in NDS wifi. it would be nice if thats a hardware control that doesnt have to be looped. single Blinking and a wifi bar i got going right now in my demo ftp://llamastein.com/HB%20NDS%20HB/Pitch.zip
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#77137 - pepsiman - Tue Mar 28, 2006 4:16 pm
knight0fdragon wrote: |
its the double blink id like that is in NDS wifi. |
Nintendo do this in software. The hardware blink is used for sleep mode.
#77194 - Payk - Wed Mar 29, 2006 6:40 am
The led could be used as equilizer in a mp3-player...And u r using ur own lib? hmhm first i worked with palib. I find out that isnt very costomizable. Then i startet witzh libnds to hear that there is still a costomizabler possibility? Ohh yeah i need that work too. next weeks will get interessting...
#77195 - Payk - Wed Mar 29, 2006 6:42 am
EDIT: In PALIB i didnt liked spritesystem (there where problems on drawing on 16bit sprites)
In ndslib dont like texturesystem(u just can load one texture, and unload all..U cant choose where to load it to or even change the bank)
So i have to work with layer0. What will be next? ASM?
#77196 - HyperHacker - Wed Mar 29, 2006 7:10 am
pepsiman wrote: |
knight0fdragon wrote: | its the double blink id like that is in NDS wifi. | Nintendo do this in software. The hardware blink is used for sleep mode. |
You just set bits 4 and 5 of the power control byte.
#77214 - knight0fdragon - Wed Mar 29, 2006 12:47 pm
dear god read the damn thing before making comments
for every1 else who reads this
SETTING BITS 4 AND 5 MAKES A FAST SINGLE BLINK
WIFI USES A DOUBLE BLINK WHICH IS DONE IN SOFTWARE NOW THANKS TO SGSTAIR AND PEPSIMAN
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#77480 - HyperHacker - Sat Apr 01, 2006 6:30 am
Hey, I dunno where you come from, but on this planet people make mistakes once in a while. There's a difference between misreading something and not reading it at all. You don't have to act like an ass every time this occurrs.
#77492 - knight0fdragon - Sat Apr 01, 2006 8:47 am
i do when i said several times that i have blinking to work, its double blink that i cant
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#77495 - HyperHacker - Sat Apr 01, 2006 9:58 am
None of those would appear to mention that you already tried that, only that you had a single blink.
#77534 - knight0fdragon - Sat Apr 01, 2006 4:23 pm
when some one else in here said to set those bits i told them thats not the issue, nevermind man just drop it
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#77601 - HyperHacker - Sat Apr 01, 2006 10:32 pm
If you mean SeanMon, that's the part I misread. :-p But yeah, pretty stupid thing to argue about.
But then what's the purpose of a single blink? I haven't seen any game use it so far. O_o
#77645 - knight0fdragon - Sun Apr 02, 2006 3:46 am
single blink is for sleep mode, or the mode where ur looking for opponents
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#77662 - HyperHacker - Sun Apr 02, 2006 6:57 am
I mean the fast single blink. It doesn't use that in sleep mode. I didn't notice it being used when looking for people, but I didn't really look close either.