#138596 - truedream - Sun Aug 26, 2007 10:11 am
Hi
this is very simple very small project, it allows a debug LED to be controlled in slot-2, just connect a LED (without resistor is ok) between pins 2 (clk) and 32 (gnd) in the GBA slot-2 and use following code to test it:
iprintf("\n\n\tDS Debug LED Test\n");
iprintf("\n\n\tLED: Slot-2 pin 2 > GND\n");
while (1) {
REG_EXMEMCNT = (i & 1) << 5;
i++;
swiDelay(10000000);
}
this loop will toggle the LED with about once a second.
can be handy debugging hard to debug things, as single memory write can turn the LED on or off
this is very simple very small project, it allows a debug LED to be controlled in slot-2, just connect a LED (without resistor is ok) between pins 2 (clk) and 32 (gnd) in the GBA slot-2 and use following code to test it:
iprintf("\n\n\tDS Debug LED Test\n");
iprintf("\n\n\tLED: Slot-2 pin 2 > GND\n");
while (1) {
REG_EXMEMCNT = (i & 1) << 5;
i++;
swiDelay(10000000);
}
this loop will toggle the LED with about once a second.
can be handy debugging hard to debug things, as single memory write can turn the LED on or off