from your great code-examples (vcsharp_pwm_demo_v1.0.zip) I got the following code:
pwm.Pwm_SetConfigInt(pwmHandle_D, "BaseFreq", pwmBaseFreqDemo, TdxCommon.ParamStorageType.StoreVolatile); pwm.Pwm_Open(pwmHandle_D);
this causes the brightness to become 100% (fully bright), but why?? How can I read the current PWM value (brightness)?
var success = pwm.Pwm_SetPwm(pwmHandle_D, pwmFrequencyD, dutyCycleD * pwmOffsetFactor / 100);
success is TRUE but the brightness (between 0 and 65536) does not change.