-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
344 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from libsonyapi.camera import Camera | ||
from libsonyapi.actions import Actions | ||
|
||
camera = Camera() # create camera instance | ||
camera_info = camera.info() # get camera camera_info | ||
print(camera_info) | ||
|
||
print(camera.name) # print name of camera | ||
print(camera.api_version) # print api version of camera | ||
|
||
camera.do(Actions.actTakePicture) # take a picture | ||
|
||
fNumber = camera.do(Actions.getFNumber) | ||
print(fNumber) # prints fnumber | ||
|
||
camera.do(Actions.setFNumber, "5") # set aperture to 5 |
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.