How to operate the camera controls¶
All the examples below assume that you have already instantiated a
from camera import Camera c = Camera()
Advance the film¶
Set a film speed setting¶
c.film_speed = <speed>
Selectable film speeds are 25, 50, 100, 200, 400, 800 ASA.
Select shutter-priority exposure mode mode¶
c.aperture = "A"
Check the light meter¶
Set aperture manually¶
c.aperture = <ƒ-number>
Selectable ƒ-numbers are between 1.7 and 16.
How to run tests¶
Tests are in
test_camera.py and require pytest.
Install pytest, and run:
How to build the documentation¶
docs directory, run:
This creates a virtual environment and installs the components listed in
To build the documentation, run:
The documentation can be found
Or to build and serve it, with automatic refresh on changes:
The documentation is served at http://127.0.0.1:8080
To check spelling, run:
Any correctly spelled but unrecognised words should be added to