Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plugin] Get pinstate/duty-cycle for [Plugin#<Plugin>#Pinstate#N] for registered pins #4435

Conversation

tonhuisman
Copy link
Contributor

@tonhuisman tonhuisman commented Dec 26, 2022

From a Forum request

Features:

  • [Plugin#<Plugin>#Pinstate#<pin>] value returns the duty-cycle for any registered plugin/pin, and retrieves PWM or SERVO setting where applicable
    • <Plugin> can be GPIO, MCP, PCF or a numeric plugin ID for a plugin that registers its pins/ports (f.e. plugins 11 (ProMini extender), 22 (PCA9685), 59 (Rotary encoder) and 63 (TTP229 touch))
  • Diagnostics output returns the duty-cycle for pins set to PWM or SERVO output

NB: Not available in 1M builds to preserve some space.

TODO:

  • Check possible other occurrences
  • Update documentation

@tonhuisman tonhuisman changed the title [P001] Get duty-cycle for [Plugin#GPIO#Pinstate#N] on PWM or SERVO pins [Plugin] Get pinstate/duty-cycle for [Plugin#<Plugin>#Pinstate#N] for registered pins Dec 27, 2022
@TD-er TD-er merged commit 958386b into letscontrolit:mega Jan 13, 2023
@tonhuisman tonhuisman deleted the feature/P001-pinstate-return-dutycycle-for-pwm-and-servo-pins branch January 13, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants