Skip to content

Add secluso-toggle and secluso-reset services/recipes#36

Draft
jkaczman wants to merge 3 commits into
mainfrom
feat/toggle-and-reset
Draft

Add secluso-toggle and secluso-reset services/recipes#36
jkaczman wants to merge 3 commits into
mainfrom
feat/toggle-and-reset

Conversation

@jkaczman

Copy link
Copy Markdown
Contributor

Fixes #20

@jkaczman jkaczman requested a review from arrdalan June 12, 2026 17:01
@jkaczman

Copy link
Copy Markdown
Contributor Author

@arrdalan - In what order should the toggle/reset services be put online? Do any of them need to be before/after the camera hub? What about for networking; do any of them need the network to be online first? Are there any runtime dependencies for either?

@arrdalan

Copy link
Copy Markdown
  • There's no required ordering between reset/toggle and camera hub.
  • The reset service needs network to be online (for the upload_log function, which is triggered when the user deliberately presses the button repeatedly several times in a row).
  • The toggle service needs the i2c-dev kernel module (which is not loaded by default in our kernel). We can have the OS load it at boot time via:

echo i2c-dev > /etc/modules-load.d/i2c-dev.conf

  • For the toggle service, we need to add the following line to /boot/config.txt:

dtoverlay=pwm,pin=13,func=4

And we need to add the required pwm overlay file to /boot/overlays/. I got it from the Raspberry Pi official OS and tested it successfully. I can push the file to this PR if/when needed.

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.

Toggle and reset button support

2 participants