Files
chill/README.md
T
2026-05-25 09:54:09 +03:00

27 lines
1.1 KiB
Markdown

# 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 min` | `<value>` | Set the minimum value for map function for light sensor |
| `mode max` | `<value>` | Set the maximum value for map function for light sensor |
| `mode gain` | `<value>` | Set light sensor gain |
Example 15min and 20s:
```
mode set 900000 20000
```
> See [DEBUG.md](DEBUG.md) for development/test commands.