alpha
Login
or
Join now
dunkirk.sh
/
inky
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
feat: add rotation
author
Kieran Klukas
date
1 year ago
(Apr 13, 2025, 6:16 PM -0400)
commit
c285b24c
c285b24c988605ea41f0a1cd56473847d099c738
parent
df347500
df3475007f701540f7e9353dc3f5f4e7d194a9cb
+2
1 changed file
Expand all
Collapse all
Unified
Split
src
camera_server.py
+2
src/camera_server.py
Reviewed
···
31
31
CAMERA_SETTLE_TIME = 1
32
32
DEBOUNCE_DELAY = 0.2
33
33
POLL_INTERVAL = 0.01
34
34
+
ROTATION = 90
34
35
35
36
def validate_photo_dir():
36
37
if not os.path.isabs(Config.PHOTO_DIR):
···
258
259
config = picam2.create_still_configuration(main={"size": Config.PHOTO_RESOLUTION})
259
260
picam2.configure(config)
260
261
picam2.start()
262
262
+
picam2.set_controls({"Rotate": Config.ROTATION})
261
263
time.sleep(Config.CAMERA_SETTLE_TIME)
262
264
263
265
timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")