March 2019
Intermediate to advanced
312 pages
7h 37m
English
wiringPi consists of a softPWM library, using which we can get PWM signal output from any data pin of the RPi. The softPWM library contains two main functions: softPwmCreate and softPwmWrite. Both of these functions work as follows:
softPwmCreate(pin number, initial duty cycle value, max duty cycle value);
The softPwmCreate function is used to create a PWM pin. It consists of three main parameters: