from sys import exit, version_info

from .pantilt import PanTilt, WS2812, PWM, RGB, GRB, RGBW, GRBW

__version__ = '0.0.6'

pantilthat = PanTilt()

idle_timeout = pantilthat.idle_timeout
servo_enable = pantilthat.servo_enable
servo_pulse_max = pantilthat.servo_pulse_max
servo_pulse_min = pantilthat.servo_pulse_min

brightness = pantilthat.brightness
clear = pantilthat.clear
light_mode = pantilthat.light_mode
light_type = pantilthat.light_type
set_all = pantilthat.set_all
set_pixel = pantilthat.set_pixel
set_pixel_rgbw = pantilthat.set_pixel_rgbw
show = pantilthat.show

servo_one = pantilthat.servo_one
pan = servo_one
get_pan = get_servo_one = pantilthat.get_servo_one

servo_two = pantilthat.servo_two
tilt = servo_two
get_tilt = get_servo_two = pantilthat.get_servo_two
