1.2 KiB
1.2 KiB
Chill
Sulajalmari code for resting eyes when working. Default settings are 20 minutes of work (the blue LEDs as a loading bar), 20 seconds of looking into the distance (eyes flashing). Double tapping the head restarts the cycle.
Shell Commands
All commands are available over the Zephyr shell (USB).
mode
| Command | Args | Description |
|---|---|---|
mode set |
<phase_a_ms> <phase_b_ms> |
Set phase durations, save to flash, and restart |
mode color |
<name> |
Set LED color by name, save to flash, and restart |
mode duration |
<ms> |
Set color animation duration, save to flash, and restart |
mode status |
— | Print current config (phases, color, duration) |
mode colors |
— | List all available color names with RGB values |
mode light min |
<value> |
Set the minimum value for map function for light sensor |
mode light max |
<value> |
Set the maximum value for map function for light sensor |
mode light gain |
<value> |
Set light sensor gain |
Example 15min and 20s:
mode set 900000 20000
Links
See DEBUG.md for development/test commands.
See BUILD.md for building the project.
See FLASH.md for installing the app to the device.