huangcm
2025-04-07 511b111543524704f6182b374e489f5d0e51db8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __PWM_LED_H__
#define __PWM_LED_H__
 
struct pwm_led {
   int pwm_num;
   int value;
   char label[16];
};
 
struct pwm_led_rgb {
   struct pwm_led r;
   struct pwm_led g;
   struct pwm_led b;
};
 
 
int pwm_led_init(void);
int pwm_led_test(void);
int pwm_led_set(struct pwm_led_rgb led_rgb);
 
#endif