Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Does blinking the LED at a high frequency affect CPU load?

Got problems with Bubba? Then this forum is for you.
Locked
6feet5
Posts: 269
Joined: 13 Apr 2007, 17:32
Location: Gnesta, Sweden
Contact:

Does blinking the LED at a high frequency affect CPU load?

Post by 6feet5 »

Hi,

My computer and bubba is placed in my bed room and the LED on the bubba is too bright for me when going to sleep (I'm one of those who prefer it pitch-black). When trying to figure out how to control the LED, I found a couple of scripts, all using the same 'gpioapp'. Blinking the LED at a very high frequency will lower its intensity so I have changed the rc2.d/S99led_on script so it reads:

Code: Select all

/usr/sbin/gpioapp blink 50 500
This gives a solid but less intense light. My concern now is how the PWM is implemented. Will lower values affect the CPU load? I'm guessing this all hardware PWM and it will not affect the CPU load, but without source code and schematics one can't really be sure. I have so far not been able to see any difference in CPU load so I'm guessing it is safe to use an even higher frequency without drawing much more CPU load.

/Johan
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Post by johannes »

Yes, you are correct, the LED is controlled through pwm and doesn't affect CPU load at all.

Good solution by the way, haven't thought about that! :)
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
Locked