thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
1.02k stars 421 forks source link

fix pwm range from 255 to 1024 #228

Closed Eduardo-bat closed 4 months ago

Eduardo-bat commented 4 months ago

The previous library's, wiringpi, default PWM range is 0-1024. The code currently scales down the 16bit value held in memory to this range. pigpio's default is 0-255, so the taken option was to set this attribute manually to the previous range.