-
Notifications
You must be signed in to change notification settings - Fork 4
Load switch #86
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
Load switch #86
Conversation
Fixed the Crashes!
This reverts commit b5544e7.
… failures Co-authored-by: Mikefly123 <[email protected]>
Co-authored-by: Mikefly123 <[email protected]>
Co-authored-by: Mikefly123 <[email protected]>
- Max packets from 8 to 9
…-core-reference into load-switch
…en-Source-Space-Foundation/proves-core-reference into load-switch
Mikefly123
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| charge: charge { | ||
|
|
||
| gpios = <&mcp23017 16 GPIO_ACTIVE_HIGH>; // GPB7 | ||
| label = "CHARGE"; | ||
| }; | ||
|
|
||
| readonly: readonly { | ||
|
|
||
| gpios = <&mcp23017 15 GPIO_ACTIVE_HIGH>; // GPB6 | ||
| label = "READONLY"; | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these two be 14 and 15 instead of 15 and 16?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you are right! Index at 0 and all that. @kevinthegreat1 if you want to make a quick PR to correct this please do!

Load Switch Addition
Description
The
LoadSwitchcomponent is an active F' component that controls a single load switch outputthrough the
gpioSetoutput port (connected to the platform's GPIO driver). It exposes twoasync commands to turn the switch on and off, telemetry reporting the current state, and an
async
Resetinput which toggles the switch (off, short delay, on).How Has This Been Tested?
Ran on the Cube. Lights turn on and off
Screenshots / Recordings (if applicable)
Checklist
Further Notes / Considerations