Advertising (This ad goes away for registered users. You can Login or Register)

Lighter version of LEDControl?

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Locked
Vento
Posts: 4
Joined: Sat Jan 07, 2012 12:18 pm

Lighter version of LEDControl?

Post by Vento »

Title basically. So basically I got the sources of LEDControl 4.2 and removed the whole *.ini and toggle-buttons handling... My version would have just turned off led.... So now the code is basically this:

Code: Select all

int thread_code(SceSize args, void *argp)
	while(1) {
		sceSysconCtrlLED(0, 0);
		sceSysconCtrlLED(1, 0);
		sceSysconCtrlLED(2, 0);
		sceSysconCtrlLED(3, 0);
		sceKernelDelayThreadCB(1000);
	}
	return 0;
}
I still do not like this infinite thread with sceKernelDelayThreadCB(1000)... so my thinking was... Could it be possible to turn all led off and patch the real sceSysconCtrlLED on the go to just be a simple nop function?
Advertising
rdfafa
Posts: 2
Joined: Sun Jun 27, 2021 3:36 pm

Re: Lighter version of LEDControl?

Post by rdfafa »

For those like me who have had trouble making this work, this might be because your LDR is calibrated differently from the one in the video. To fix this issue, try replacing the "300" with other values until it works.




Tutuapp 9Apps Showbox
Advertising
Locked

Return to “Programming and Security”