added license info to source file

This commit is contained in:
Paul 2023-03-04 12:51:46 +01:00
parent 95c4e1e955
commit e27c3e5fea
2 changed files with 4 additions and 42 deletions

Binary file not shown.

View File

@ -1,48 +1,10 @@
""" """
CCSOne Python libary CCSOne Python libary
written by Paul Schürholz
Example usage: Copyright (C) 2023 Paul Schürholz
create CCSOne object: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
ccsoneobj = ccsone.CCSOne(IP_ADDRESS, PORT, AUTHNAME, HOTKEYS) This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
close connection:
ccsoneobj.closesocket()
get device information:
ccsoneobj.getdeviceinformation()
add camera object:
ccsoneobj.addcam(CAMERA_NUMBER)
subscribe to function:
ccsoneobj.cams[CAMERA_NUMBER].valuesubscribe(FUNCTION_ID)
get function value / subscribe if not known:
ccsoneobj.getfunctionvalue(FUNCTION_ID)
change function value:
ccsoneobj.cams[CAMERA_NUMBER].functionvaluechange(FUNCTION_ID, VALUE)
set tally state:
ccsoneobj.cams[CAMERA_NUMBER].settally(TALLY_STATE)
toggle tally state:
ccsoneobj.cams[CAMERA_NUMBER].toggletally()
get tally state:
ccsoneobj.cams[CAMERA_NUMBER].gettally()
set gain COLOR=>(r,g,b) VALUE=>0-99:
ccsoneobj.cams[CAMERA_NUMBER].setgain(COLOR, VALUE)
get gain (r,g,b):
ccsoneobj.cams[CAMERA_NUMBER].getgain(COLOR)
get Fstop:
ccsoneobj.cams[CAMERA_NUMBER].getf()
responses are handled automatically in a recieve thread
""" """
import socket import socket
import time import time