thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
GNU General Public License v3.0
1.11k stars 452 forks source link

fix pwm range from 255 to 1024 #228

Closed Eduardo-bat closed 8 months ago

Eduardo-bat commented 8 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.