User manual

#define LED "/sys/class/leds/led/brightness"
int main(int argc, char *argv[])
{
int f_led;
unsigned char i = 0;
unsigned char dat;
if((f_led = open(LED, O_RDWR)) < 0){
printf("error in open %s",LED);
return -1;
}
for(;;){
i++;
//dat = i&0x1 ? '1':'0';
//dat = (i&0x2)>>1 ? '1':'0';
dat = (i&0x4)>>2 ? '1':'0';
write(f_led, &dat, sizeof(dat));
usleep(300000);
}
}
2. Cross compilation
arm-none-linux-gnueabi-gcc led_acc.c -o led_acc
3. Download and run
Resources can be put into the SOC8200 board system in the way of SD card or U flash card or
download. Then enter the directory that file led_acc exists, and input the following commands and
enter, then the led_acc will run in the background.
./led_acc &