Changes between Version 2 and Version 3 of linux/pwm
- Timestamp:
- 01/26/2021 08:45:37 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/pwm
v2 v3 202 202 {{{ 203 203 #!bash 204 echo 500000 > /sys/class/pwm/pwmchip0/pwm0/ period# set 500us (50% duty-cycle if period is 1ms)204 echo 500000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle # set 500us (50% duty-cycle if period is 1ms) 205 205 cat /sys/class/pwm/pwmchip0/pwm0/duty_cycle # see duty_cycle 206 206 }}}