data.py
1 # SPDX-FileCopyrightText: 2020 Phillip Burgess for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 """ Configuration data for the cyclops eye """ 6 EYE_PATH = __file__[:__file__.rfind('/') + 1] 7 EYE_DATA = { 8 'eye_image' : EYE_PATH + 'cyclops-eye.bmp', 9 'upper_lid_image' : EYE_PATH + 'cyclops-upper-lid.bmp', 10 'lower_lid_image' : EYE_PATH + 'cyclops-lower-lid.bmp', 11 'stencil_image' : EYE_PATH + 'cyclops-stencil.bmp', 12 'transparent' : (255, 0, 0), # Transparent color in above images 13 'eye_move_min' : (-4, -15), # eye_image (left, top) move limit 14 'eye_move_max' : (14, -2), # eye_image (right, bottom) move limit 15 'upper_lid_open' : (15, -23), # upper_lid_image pos when open 16 'upper_lid_center' : (15, -18), # " when eye centered 17 'upper_lid_closed' : (15, 0), # " when closed 18 'lower_lid_open' : (15, 24), # lower_lid_image pos when open 19 'lower_lid_center' : (15, 23), # " when eye centered 20 'lower_lid_closed' : (15, 17), # " when closed 21 }