Skip to content

Commit

Permalink
examples: pwm.c: update for opi5ultra
Browse files Browse the repository at this point in the history
  • Loading branch information
leeboby committed Aug 26, 2024
1 parent 7ce7a4c commit ad021d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ static void set_pwm_info(int pin)
}
break;
case PI_MODEL_5_MAX:
case PI_MODEL_5_ULTRA:
if (pin != 0 && pin != 1 && pin != 2 && pin != 8 && pin != 9 && pin != 17 && pin != 20 && pin != 21 && pin != 22 && pin !=23) {
fprintf (stderr, "the pin you choose doesn't support hardware PWM\n") ;
exit(1);
Expand Down
1 change: 1 addition & 0 deletions wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -6569,6 +6569,7 @@ void rk3588_set_pwm_reg(int pin, rk3588_soc_info * rk3588_soc_info_ptr)
printf("You can select wiringPi pin 2/5/6/7/17/18/21/22 for PWM pin.\n");
break;
case PI_MODEL_5_MAX:
case PI_MODEL_5_ULTRA:
printf("You can select wiringPi pin 0/1/2/8/9/17/20/21/22/23 for PWM pin.\n");
break;
case PI_MODEL_CM5_TABLET:
Expand Down

0 comments on commit ad021d4

Please sign in to comment.