#Custom percentage field
8 messages · Page 1 of 1 (latest)
Ahoi @sly mauve!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message
If you don't want the bot asking for logs, just use #NoLogsNeeded, as you can read in #readme
And what exactly do you want? Some UI element showing you a percentage value, just like a fan?
Yes, precisely like a fan.
What do you want to do there?
it should work exactly the same like the pin example but with pwm defined in the pin
Thank you. I want to define a switch, as in the first example. That controls whether or not an override is in effect. Along with a percentage limit for the override. All of this to control the noise level of a part cooling fan, but still allow it to increase our decrease (within allowed range).
as said you get either a 1|0 value with pwm: false or a 0..1 value if pwm: true. The UI displays:
- pwm false -> switch
- pmw: true -> slider
The rest is up to you