PWM

Applies to: c, embedded, robotics

PWM rapidly switches a signal on and off. The duty cycle controls average power, useful for motors and LEDs.

set_pwm_duty(0.5);

See also: gpio, register