add trigger pwm for ultrasonic module
This commit is contained in:
@@ -22,6 +22,9 @@ int main(void)
|
||||
drv_open(&pwm_2);
|
||||
drv_open(&pwm_3);
|
||||
drv_open(&pwm_4);
|
||||
|
||||
drv_open(&pwm5_c2);
|
||||
|
||||
while(1) {
|
||||
for(unsigned int duty = 0; duty < 100; duty++) {
|
||||
drv_ioctl(&pwm_1, IOCTL_PWM_SET_DUTY_CYCLE, (const void *)&duty);
|
||||
|
Reference in New Issue
Block a user