Update led and pwm source code to remove compile warnning
Signed-off-by: guowenxue <guowenxue@gmail.com>
| | |
| | | printf("initial leds gpio failure, rv=%d\n", rv); |
| | | return 1; |
| | | } |
| | | printf("initial RGB Led gpios okay\n", rv); |
| | | printf("initial RGB Led gpios okay\n"); |
| | | |
| | | signal(SIGINT, sig_handler); |
| | | signal(SIGTERM, sig_handler); |
| | |
| | | |
| | | printf(" -c[channel ] Specify PWM channel, such as 0\n"); |
| | | printf(" -f[freq ] Specify PWM frequency, default 2500(Hz)\n"); |
| | | printf(" -d[duty ] Specify PWM duty, default 50(50%)\n"); |
| | | printf(" -d[duty ] Specify PWM duty, default 50(50%%)\n"); |
| | | printf(" -s[status ] Specify PWM status: 1->on(default), 0->off\n"); |
| | | printf(" -h[help ] Display this help information\n"); |
| | | printf(" -v[version ] Display the program version\n"); |