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

Add a sleep tracker/smart alarm app #4

Open
wants to merge 121 commits into
base: main
Choose a base branch
from

Conversation

dariusarnold
Copy link
Owner

@dariusarnold dariusarnold commented Mar 2, 2025

Add SleepTK port infinisleep by cyberneel. This is from the upstream PR.

TODO:

  • Allow user to set duration for auto alarm button in settings manually without the calculation by sleep cycles
  • Make the "Motor Power" button in settings vibrate the motor at the current power instead of nothing
  • Check if motor power can be reduced further
  • Potentially remove sleep tracking screen or make it not the first page

Copy link

github-actions bot commented Mar 2, 2025

Build size and comparison to main:

Section Size Difference
text 384000B 7932B
data 948B 0B
bss 22688B 152B

Run in InfiniEmu

cyberneel and others added 29 commits March 2, 2025 20:44
…ller to handle longer run times as input, fixed swipe motions in sleep app
cyberneel and others added 27 commits March 2, 2025 20:44
removed some unsed code in motorcontroller

made snoozing take user to info page

fixed logic for skipping gradual wake while in snooze
Also added setting for natural awake, will implement next
Dif this to avoid weird behavior that can happen if changed during alarm active state. This also remove the need to handle those in code.
removed wakelock when using natural alrm mode as user may not wake up soon and unintended taps may happen.
… on widget without 2 second stutter.

Formatted DisplayApp.cpp
removed auto snooze for natural wake

removed side button to stop alarm
removed some unused code. Didn't reduce RAM usage.
…re vibrations

added the similar ramping up effect to the natural wake alarm but with larger interval
…ness when stopped

Also tweaked the Natural Wake Vibration a little.
I think pressing the side button as the auto snooze function is running causes a crash.
Bug was that the SetSwitchState was missing a check to make sure enableSwitch is available.
…e in the OnButtonEvent function.

Also made sure to delete the task in some places.
@dariusarnold dariusarnold force-pushed the cyberneel-infinisleep branch from d7e11ca to 28d74b0 Compare March 2, 2025 19:44
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.

3 participants