Module ImportFrom alias ImportFrom alias ClassDef bases body Assign NameStore Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd NameLoad Num Assign NameStore NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad While CompareGt NameLoad Num body AugAssignSub NameStore Num AugAssignSub AttributeStore NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad AugAssignSub AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad While CompareGt NameLoad Num body AugAssignSub NameStore Num AugAssignSub AttributeStore NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Expr Call NameLoad AugAssignSub AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Num Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr IfExp NameLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpFloorDiv AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpFloorDiv AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Num Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad Num For NameStore Call NameLoad Num Num body Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr
N/A __future__ division wiringpi2 * tcControl N/A N/A N/A pin_base 100 N/A m1_en_pin N/A pin_base 0 N/A m1_step_pin N/A pin_base 1 N/A m1_dir_pin N/A pin_base 2 N/A m2_en_pin N/A pin_base 5 N/A m2_step_pin N/A pin_base 4 N/A m2_dir_pin N/A pin_base 3 N/A reel1_pin N/A pin_base 6 N/A reel2_pin N/A pin_base 7 N/A led_pin N/A pin_base 8 N/A shutter_pin N/A pin_base 9 N/A focus_pin N/A pin_base 10 N/A gpio1_pin N/A pin_base 11 N/A gpio2_pin N/A pin_base 12 N/A gpio3_pin N/A pin_base 13 N/A gpio4_pin N/A pin_base 14 N/A gpio5_pin N/A pin_base 15 N/A take_up_steps take_up_counter 550 N/A tension_steps 50 N/A step_counter 0 __init__ N/A N/A self N/A N/A N/A N/A wiringPiSetupSys N/A N/A mcp23s17Setup N/A self pin_base 0 0 N/A N/A self m1 N/A stepperMotor N/A self m1_step_pin N/A self m1_dir_pin N/A self m1_en_pin N/A N/A self m2 N/A stepperMotor N/A self m2_step_pin N/A self m2_dir_pin N/A self m2_en_pin N/A N/A self reel1 N/A reelMotor N/A self reel1_pin N/A N/A self reel2 N/A reelMotor N/A self reel2_pin N/A N/A self led N/A ledControl N/A self led_pin N/A N/A self shutter_release N/A shutterRelease N/A self focus_pin N/A self shutter_pin N/A N/A N/A N/A self m1 on N/A N/A N/A N/A self m2 on N/A N/A N/A N/A self m1 set_direction True N/A N/A N/A N/A self m2 set_direction True N/A N/A self direction True N/A light_on N/A N/A self N/A N/A N/A N/A N/A N/A self led on N/A light_off N/A N/A self N/A N/A N/A N/A N/A N/A self led off N/A change_direction N/A N/A self d N/A True N/A N/A 
	Set parameters when direction changes
	 N/A N/A self direction d N/A N/A self take_up_counter N/A self take_up_steps N/A N/A self step_counter N/A self tension_steps N/A N/A N/A N/A self m1 set_direction d N/A N/A N/A N/A self m2 set_direction d N/A steps_forward N/A N/A self steps N/A 1 N/A N/A  
	Take steps forward - pulse the takeup reel and tension film
	by ignoring push step occasionally
	 N/A m1step N/A N/A self m1 step N/A m2step N/A N/A self m2 step N/A N/A N/A self direction N/A N/A N/A N/A self change_direction True N/A N/A steps 1 N/A N/A steps 1 N/A N/A self take_up_counter 1 N/A N/A N/A self take_up_counter 1 N/A N/A N/A N/A N/A self reel2 pulse N/A N/A self take_up_counter N/A self take_up_steps N/A N/A N/A self step_counter 0 N/A N/A N/A m1step N/A N/A self step_counter 1 N/A N/A N/A self step_counter N/A self tension_steps N/A N/A m2step N/A steps_back N/A N/A self steps N/A 1 N/A N/A  
	Take steps backwards
	 N/A m1step N/A N/A self m1 step N/A m2step N/A N/A self m2 step N/A N/A self direction N/A N/A N/A N/A self change_direction False N/A N/A steps 1 N/A N/A steps 1 N/A N/A self take_up_counter 1 N/A N/A N/A self take_up_counter 0 N/A N/A N/A N/A N/A self reel1 pulse N/A N/A self take_up_counter N/A self take_up_steps N/A N/A N/A self step_counter 0 N/A N/A N/A m2step N/A N/A self step_counter 1 N/A N/A N/A self step_counter N/A self tension_steps N/A N/A m1step N/A tension_film N/A N/A self steps N/A 200 N/A N/A d N/A self direction N/A N/A N/A N/A self m1 set_direction False N/A N/A N/A N/A self m2 set_direction True N/A n N/A xrange steps N/A N/A N/A N/A N/A self m1 step N/A N/A N/A N/A self m2 step N/A N/A N/A N/A self m1 set_direction d N/A N/A N/A N/A self m2 set_direction d N/A clean_up N/A N/A self N/A N/A N/A N/A N/A N/A self led off N/A N/A N/A N/A self reel1 off N/A N/A N/A N/A self reel2 off N/A N/A N/A N/A self m1 off N/A N/A N/A N/A self m2 off N/A N/A stepperMotor N/A N/A N/A 
    Simple Stepper motor control class

    Simple class to control stepper motors
    using the BigEasyDriver
    http://www.schmalzhaus.com/BigEasyDriver/

    To control one motor these pins are used:

    EN - Enable/Energise the motor (optional)
    DR - Direction of step
    ST - Step
    GND - Ground connection

    Motor is energised by default - the EN pin can switch power to motor 
    off, to allow manual positioning etc. This connection is optional.

    Big Easy Driver defaults to 3200 steps per rotation, microstepping 
    mode. Re-energising the coils after sleeping will set the nearest 
    whole step
     N/A delay 1 N/A motor_on False N/A rotation_steps 3200 __init__ N/A N/A self step_pin dir_pin en_pin N/A N/A N/A N/A self step_pin step_pin N/A N/A self dir_pin dir_pin N/A N/A self en_pin en_pin N/A N/A pinMode step_pin 1 N/A N/A pinMode dir_pin 1 N/A N/A pinMode en_pin 1 N/A N/A N/A self on N/A N/A self direction True N/A on N/A N/A self N/A N/A N/A N/A digitalWrite N/A self en_pin False N/A N/A self motor_on True N/A off N/A N/A self N/A N/A N/A N/A digitalWrite N/A self en_pin True N/A N/A self motor_on False N/A set_direction N/A N/A self direction N/A True N/A N/A N/A self direction N/A direction 1 0 N/A N/A digitalWrite N/A self dir_pin N/A self direction N/A step N/A N/A self N/A N/A N/A N/A digitalWrite N/A self step_pin True N/A N/A digitalWrite N/A self step_pin False N/A steps N/A N/A self s N/A N/A N/A i N/A xrange 0 s N/A N/A N/A N/A self step N/A rotate_full N/A N/A self N/A N/A N/A N/A N/A self steps N/A self rotation_steps N/A rotate_half N/A N/A self N/A N/A N/A N/A N/A self steps N/A N/A self rotation_steps 2 N/A rotate_quarter N/A N/A self N/A N/A N/A N/A N/A self steps N/A N/A self rotation_steps 4 N/A N/A ledControl N/A N/A N/A 
    Simple Class to control the LED power
     __init__ N/A N/A self pin N/A N/A N/A N/A self pin pin N/A N/A pinMode pin True N/A N/A N/A self off N/A on N/A N/A self N/A N/A N/A N/A digitalWrite N/A self pin True N/A off N/A N/A self N/A N/A N/A N/A digitalWrite N/A self pin False N/A N/A reelMotor N/A N/A N/A 
	Class to control DC motors for film spools
	The motors are controlled simply by switching on a wiringpi pin
     N/A pulse_delay 35 __init__ N/A N/A self pin N/A N/A N/A N/A self pin pin N/A N/A pinMode pin True N/A N/A N/A self off N/A on N/A N/A self N/A N/A N/A N/A digitalWrite N/A self pin True N/A off N/A N/A self N/A N/A N/A N/A digitalWrite N/A self pin False N/A pulse N/A N/A self N/A N/A N/A N/A digitalWrite N/A self pin True N/A N/A delay N/A self pulse_delay N/A N/A digitalWrite N/A self pin False N/A N/A shutterRelease N/A N/A N/A 
    Telecine SLR shutter release class

    Uses 2 pins with wiringPi2 - connected to a pair of opto-couplers
    and a cable to  2.5mm tip/ring/sleeve (stereo) jack used
    by Pentax and some Canon shutter release cables. Will probably
    work in a similar way using a different connector with other 
    cameras. This method is used a lot with Arduinos.
    The delay settings were established by trial and error with my own
    DSLR. There is opten quite a lag for the camera to start and take
    a picture.
     N/A wake_delay 1500 N/A shutter_delay 300 __init__ N/A N/A self focus_pin shutter_pin N/A N/A N/A N/A self focus_pin focus_pin N/A N/A self shutter_pin shutter_pin N/A N/A pinMode focus_pin 1 N/A N/A pinMode shutter_pin 1 N/A N/A digitalWrite N/A self focus_pin False N/A N/A digitalWrite N/A self shutter_pin False N/A wake_camera N/A N/A self N/A N/A N/A N/A digitalWrite N/A self focus_pin True N/A N/A delay N/A self wake_delay N/A N/A digitalWrite N/A self focus_pin False N/A fire_shutter N/A N/A self N/A N/A N/A N/A digitalWrite N/A self shutter_pin True N/A N/A delay N/A self shutter_delay N/A N/A digitalWrite N/A self shutter_pin False N/A N/A N/A N/A __name__ __main__ N/A N/A tc N/A tcControl N/A N/A N/A tc light_on N/A j N/A range 1 15 N/A N/A N/A delay 500 N/A N/A N/A tc steps_forward 310 N/A N/A delay 2000 N/A j N/A range 1 15 N/A N/A N/A delay 500 N/A N/A N/A tc steps_back 310 N/A N/A N/A tc clean_up