Using "consumer" to describe the current state of the line #84
o-alquimista
started this conversation in
General
Replies: 1 comment 1 reply
-
You can put whatever you want into the consumer string. How are you managing PWM with libgpiod is a mistery to me though. :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it ok to use "--consumer" to hold variable information on the current state of the line? e.g.
--consumer="my-script-current-power-50%"
This is assuming the line can have more than two states, so you cannot rely on the active/inactive description. In my case, I'm doing software-timed PWM.
I believe it should be ok to do that — it's just a string after all — but who knows, there could be a better way. My alternative would be managing a text file in
/var/run/
.Beta Was this translation helpful? Give feedback.
All reactions