Repository navigation
Option in hardware.json to set PWM pins as output-only - #3624
Merged
Merged
Conversation
pkendall64
force-pushed
the
4.1/out-only-pwm-pins
branch
from
April 22, 2026 20:33
f0de2c6 to
149a5d2
Compare
CapnBry
approved these changes
May 25, 2026
CapnBry
left a comment
Member
There was a problem hiding this comment.
I apologize, I actually reviewed this when you posted it and never hit Submit Review as I was "just going to confirm one thing in discord first" aaaaaand then got distracted by something else.
Just to clarify the feature for posterity though, this is an all-or-nothing switch that means all the pins in pwm_outputs are buffered and therefore unidirectional. There is no per-pin granularity.
Collaborator
Author
Yes, it is all or nothing. If we get some that can do it piecemeal, then we can extend this. |
pkendall64
force-pushed
the
4.1/out-only-pwm-pins
branch
from
May 27, 2026 20:49
149a5d2 to
d425f6f
Compare
mha1
approved these changes
May 28, 2026
# Conflicts: # src/html/src/pages/connections-panel.js
pkendall64
force-pushed
the
4.1/out-only-pwm-pins
branch
from
May 28, 2026 20:13
d425f6f to
1aec4cc
Compare
# Conflicts: # src/html/headers/web-lr1121-rx.h # src/html/headers/web-sx127x-rx-8285.h # src/html/headers/web-sx127x-rx.h
pkendall64
force-pushed
the
4.1/out-only-pwm-pins
branch
from
May 28, 2026 20:53
1aec4cc to
d133e5f
Compare
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This is to support PWM receivers that use buffers to protect the MCU when using servos that require a high current draw on the signal pin. The option is a boolean flag called
pwm_out_only, it defaults to false so is compatible with all existing receivers.Without this PR, a user would still think that they could select Serial and/or I2C on PWM pins, and be very confused when things don't work as expected.
If a user goes to the Serial page on one such receiver, they will see the following banner on the page.
