separate code to Soft PWM lazarus / 32-Linux ---------------------------------------------------------------------- pascalbythree · 2023-08-06 13:17 Does anybody have separate code to Soft PWM with a Rasperry in Freepascal? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     function softPwmCreate(pin,value,range:longint):longint;cdecl;external;    procedure softPwmWrite(pin,value:longint);cdecl;external; I am now using libWiringpi , but i want to step over to PXL Maybe somebody have serparate code to do this ? Greets, Wouter van Wegen ---------------------------------------------------------------------- dseligo · 2023-08-06 22:28 Quote from: pascalbythree on August 06, 2023, 03:17:23 pmDoes anybody have separate code to Soft PWM with a Rasperry in Freepascal? I adapted Atmel's/Microchip's Application note AVR136 for use in Pascal (https://ww1.microchip.com/downloads/en/Appnotes/Atmel-8020-Low- Jitter-Multi-Channel-Software-PWM_ApplicationNote_AVR136.pdf), but it is for AVR.