https://github.com/Endika/flipper-hyper-focus-calc
Hyperfocal distance calculator for Flipper Zero: focal length, aperture (full stops), and sensor CoC. External FAP (C).
https://github.com/Endika/flipper-hyper-focus-calc
c calculator circle-of-confusion embedded fap flipper-zero flipper-zero-fap flipperzero hyperfocal photography
Last synced: about 5 hours ago
JSON representation
Hyperfocal distance calculator for Flipper Zero: focal length, aperture (full stops), and sensor CoC. External FAP (C).
- Host: GitHub
- URL: https://github.com/Endika/flipper-hyper-focus-calc
- Owner: Endika
- License: other
- Created: 2026-04-17T18:06:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-25T22:34:06.000Z (about 1 month ago)
- Last Synced: 2026-06-16T10:37:29.839Z (22 days ago)
- Topics: c, calculator, circle-of-confusion, embedded, fap, flipper-zero, flipper-zero-fap, flipperzero, hyperfocal, photography
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- flipper-zero-awesome - HyperFocus Calc - stop aperture, and per-sensor circle of confusion (CoC), with optional manual CoC editing. | [Endika](https://github.com/Endika) | ⭐ 5 | [Official](https://lab.flipper.net/apps/flipper_hyper_focus_calc) / [GitHub](https://github.com/Endika/flipper-hyper-focus-calc) | (Tools)
README
# HyperFocus Calc (Flipper Zero)
External Flipper Zero app that computes **hyperfocal distance** from focal length (mm), aperture (full-stop sequence), and each sensor’s **circle of confusion** (CoC). CoC defaults to diagonal/1500 from sensor width and height (mm); you can override CoC manually in the sensor editor.
## Screenshots
**Main menu**

**Hyperfocal calculator**

Static images are stored in [`assets/`](assets/) (`menu.png`, `hyperfocal.png`).
## Calc screen
- **Up / Down**: focal length (1 mm steps, 8–600 mm).
- **Left / Right**: aperture in full stops: 1.4, 2, 2.8, 4, 5.6, 8, 11, 16, 22.
- **Back**: main menu.
## Sensor editor
- **W / H**: adjust with Left/Right in **0.01 mm** steps (two decimal places).
- **CoC**: adjust with Left/Right in **0.001 mm** steps (three decimal places). The line shows **d/1500** (reference from current W and H) next to your CoC value.
- Changing **W** or **H** recomputes CoC from **d/1500**; you can still edit CoC afterward.
## Development
```bash
make test # Host unit tests (domain math)
make linter # cppcheck on domain + tests
make format # clang-format
make prepare # Symlink into flipperzero-firmware/applications_user
make fap # Build .fap (requires FLIPPER_FIRMWARE_PATH)
```
Set `FLIPPER_FIRMWARE_PATH` if your firmware checkout is not `/home//flipperzero-firmware`.
## License
MIT — see [LICENSE](LICENSE).