Output timeout, library update, additional board support #228
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.
Added support for Feather RP2040 USB Host boards
This is implemented as an option and requires un-/commenting two lines in CMakeLists.txt to switch from the PICO series to the Feather boards.
Removed pico-sdk and Pico-PIO-USB files and added git submodules instead
Not sure if this was so smart, but I ran into trouble with Pico-PIO-USB library and this seemed to be the proper way to get updates. Please note that the submodules require the --recurse-submodules option when cloning. If the option was missing the submodules can be fetched with git submodule update --init --recursive.
Added timeout feature
This is useful when one machine is always on and the other gets disconnect or shutdown regularly (one desktop, one laptop for example). To make use of this feature mouse and keyboard need to be connected to the board on the always on machine (via USB hub or common wireless receiver). When the other board gets unplugged or the computer gets be shutdown the output will automatically switch to the active output and prevent accidental switching. If the disconnected output was active while it got disconnected, the output will automatically switch back when it gets reconnected. In the future, especially if more outputs get added, it might be better to change this to always switch to the newly connected or powered on device. And maybe add corresponding options in the configuration.