Skip to content

Commit

Permalink
feat: add rotation, flip_horizontal, and flip_vertical paramete…
Browse files Browse the repository at this point in the history
…rs to `SetupHeadlessConfig` to allow configuration of the display orientation
  • Loading branch information
sassanh committed May 8, 2024
1 parent a155781 commit 0be4fe0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 0.7.4

- feat: add `rotation`, `flip_horizontal`, and `flip_vertical` parameters to
`SetupHeadlessConfig` to allow configuration of the display orientation

## Version 0.7.3

- feat: configurable rotation and flip parameters
Expand Down
6 changes: 6 additions & 0 deletions headless_kivy_pi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ class SetupHeadlessConfig(TypedDict):
automatic_fps: NotRequired[bool]
"""If set to `True`, it will clear the screen before exiting."""
clear_at_exit: NotRequired[bool]
"""The rotation of the display clockwise, it will be multiplied by 90."""
rotation: NotRequired[int]
"""Whether the screen should be flipped horizontally or not"""
flip_horizontal: NotRequired[bool]
"""Whether the screen should be flipped vertically or not"""
flip_vertical: NotRequired[bool]


_config: SetupHeadlessConfig | None = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "headless-kivy-pi"
version = "0.7.3"
version = "0.7.4"
description = "Headless renderer for Kivy framework on Raspberry Pi"
authors = ["Sassan Haradji <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 0be4fe0

Please sign in to comment.