-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usbsdmux/FAST: Add support for outputs
This change adds support for the two outputs on the USB-SD-Mux FAST. The outputs are two open-drain channels that allow to drive external signals low or even switch a (small) load. Since this tooling does not store the state of the USB-SD-Mux this means that we will always have to retrieve the state from the device before we can modify any values. To archive this we have to: * On creation of the UsbSdMuxFast object we check if the device is already initialized. If not: The state is defined by pull-resistors on the board. Write this state into the I2C-GPIO expander without changing the state. * Update the existing code, so that changing the state of the multiplexer keeps the state of the outputs in place. * Add actual support to switch the output. * Add support in the CLI. Signed-off-by: Chris Fiege <[email protected]>
- Loading branch information
1 parent
fee410b
commit 69b284f
Showing
4 changed files
with
95 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ dist/ | |
.tox/ | ||
envs/ | ||
.idea | ||
venv/ |
This file contains 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
This file contains 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
This file contains 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