periph / host

Go·Hardware·Lean - Host drivers
https://periph.io
Apache License 2.0
53 stars 27 forks source link

Clarify Error Message for PWM Support #56

Open beyazkemal opened 1 week ago

beyazkemal commented 1 week ago

Hello, I’ve been using the this library and recently encountered an issue related to PWM functionality. The current error message “pwm is not supported via sysfs” can be misleading for users, implying that PWM support is present but not through sysfs, whereas in reality, PWM functionality has not been implemented yet.

https://github.com/periph/host/blob/522a3cb6e99e9649daf291bfb7b097219409a813/sysfs/gpio.go#L307

I suggest revising this error message to something like “PWM functionality not implemented within the periph library” to provide clearer guidance to users encountering this issue. This adjustment would help prevent confusion and better inform users about the current status of PWM support within the library.

Thank you for considering this suggestion. I appreciate your efforts in maintaining and improving the library.

Best regards.