Hi all,
I need some idea on writing C program that visualizes the current CPU load of the RaspberryPi computer on the
Gertboard LEDs with certain conditons on. The conditions are as follows:
1. On full load of the CPU, 10 LEDS should be switched on.
2. On zero load of the CPU, no LEDshould be switched on.
3. Partial loads should be shown accordingly with partial LED lighting,
for example, 50% load should be visualized by activating only 5 adjacent LEDs, starting
from B3.
4. program should constantly monitor and display the CPU status for 10s and
terminate then.
5. The display should update at least every second.
Also, The Makefile must use the cross-compiler named arm-linux-gnueabihf-gcc. The compiled
binary must get the name cpuload, and must be executable on a RaspberryPi computer.
Kindly input your ideas. I am finding it difficult as I am new to this.