Skip to content

refactor(v2): drop -dev, add HW envs, clean up headers#90

Merged
kawinie merged 1 commit into
mainfrom
refactor/v2-build-envs
May 16, 2026
Merged

refactor(v2): drop -dev, add HW envs, clean up headers#90
kawinie merged 1 commit into
mainfrom
refactor/v2-build-envs

Conversation

@kawinie
Copy link
Copy Markdown
Collaborator

@kawinie kawinie commented May 16, 2026

Summary

Restructures v2's compile-time hardware identity to support more board revisions. The single HW1_3_V2 board flag is replaced with a HW_VERSION_MAJOR/HW_VERSION_MINOR pair so v2 source can branch on rev numerically (e.g. #if HW_VERSION_MAJOR == 1 && HW_VERSION_MINOR >= 3). Adds envs for HW1.0 and HW1.1, drops the -dev version tag from v2 envs.

Details:

  • New envs: HW1_0 (v1), HW1_0_V2, HW1_1_V2. v2 envs go from 2.0.0-dev to 2.0.0.
  • state.h deleted. ButtonId/Gesture move to pocketpd.h, SensorSnapshot to events.h.
  • Top-level main.cpp drops the #ifdef HW1_3_V2 fork. v1 entry now lives in src/v1/main.cpp.

Linked issues

Hardware tested

  • HW1_3
  • None (no hardware change)

How tested: build-only refactor, no runtime change.

Breaking change / migration

Details:

Notes

- add envs support for HW1.0 and 1.1
- state.h folds into pocketpd.h and events.h
- move v1 to src/v1/main.cpp
@kawinie kawinie marked this pull request as ready for review May 16, 2026 10:46
@kawinie kawinie merged commit 8ebc7a6 into main May 16, 2026
1 check passed
@kawinie kawinie deleted the refactor/v2-build-envs branch May 16, 2026 10:46
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.

1 participant