Skip to content
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

Multi plug improvements (CON-1465) #1202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hankedan000
Copy link

I wanted to make a multi-zone light controlled, and this multi-on-off-plugin example was really close to what I wanted. I just wanted to control more lights really. This updates makes this example project more of an "out of the box" solution for my project, and I hope others will find the same.

  • added support for up to 16 plugs
  • updated menuconfig to only display config options for the # of virtual plugs the user has defined
  • added a factory reset button with customizable GPIO level, and pin # via menuconfig

default options

full options

@CLAassistant
Copy link

CLAassistant commented Dec 11, 2024

CLA assistant check
All committers have signed the CLA.

@hankedan000 hankedan000 force-pushed the multi-plug-improvements branch from b1859f4 to dae802f Compare December 11, 2024 13:08
@github-actions github-actions bot changed the title Multi plug improvements Multi plug improvements (CON-1465) Dec 11, 2024
@shubhamdp
Copy link
Contributor

and this multi-on-off-plugin example was really close to what I wanted

Glad to hear that this example was helpful in curating your solution.

@shubhamdp
Copy link
Contributor

@hankedan000 Added minor comments, change LGTM! Also, please resolve the addressed comments.

@shripad621git
Copy link
Contributor

LGTM!

 * adds reset button logic
 * adds support for upt to 16 plugs

Add ability to configure up to 16 plugs

Add factory reset via GPIO

Use bsp instead of device_hal for button initialization

Check if reset button IO pin # conflicts with plugs

Update default IO to be usable accross all supported targets

Updates readme

Adds reset_gpio out arg. Fixed error code usage. Fixed non-static variable names
@hankedan000 hankedan000 force-pushed the multi-plug-improvements branch from 575d4fc to a41e41b Compare December 31, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants