-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pbio/sys/main: turn off all motor outputs on shutdown
In most cases, pbio_stop_all() was already stopping motors, but it doesn't turn off motor outputs for non-motor devices that need extra power. This was causing the SPIKE Light Matrix to turn on all green LEDs when any hub was turned off. This fix is a bit of a hack since it is going behind the back of the higher-level I/O port stuff, but it works for now.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 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
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