And still the PWM doesn’t work…
I want to implement software dimming of LED backlight, but so far I can’t get PWM to work. I use IRFZ44N transistor in the power circuit of LED backlight, supply voltage is 12V
It needs a current limiting resistor in series so you don’t “short” out the bus and/or burn the I/O pin out. Do you have a breadboard and some dupont wire for the setup?
Start out by doing a simple gpio(pin) on then do a gpio(pin) off to that same pin to verify the led is wired correctly. If that works proceed forward with the PWM.
Are you sure the directory: /sys/class/pwm/pwmchip4/pwm1/period exists?