Skip to content

Commit 412ad73

Browse files
authored
Merge pull request adafruit#1266 from adafruit/pb-moon-clock
Matrix eyes: add skull
2 parents 7ca3ecb + e761a21 commit 412ad73

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed

Matrix_Portal_Eyes/code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#from eyes.cyclops.data import EYE_DATA
1717
#from eyes.kobold.data import EYE_DATA
1818
#from eyes.adabot.data import EYE_DATA
19+
#from eyes.skull.data import EYE_DATA
1920

2021
# UTILITY FUNCTIONS AND CLASSES --------------------------------------------
2122

Matrix_Portal_Eyes/eyes/skull/data.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
""" Configuration data for the skull eyes """
2+
# Photo by Lina White on Unsplash: https://unsplash.com/photos/K9nxgkYf-RI
3+
EYE_PATH = __file__[:__file__.rfind('/') + 1]
4+
EYE_DATA = {
5+
'eye_image' : EYE_PATH + 'skull-eyes.bmp',
6+
'upper_lid_image' : EYE_PATH + 'skull-upper-lids.bmp',
7+
'lower_lid_image' : EYE_PATH + 'skull-lower-lids.bmp',
8+
'stencil_image' : EYE_PATH + 'skull-stencil.bmp',
9+
'transparent' : (255, 0, 0), # Transparent color in above images
10+
'eye_move_min' : (1, -4), # eye_image (left, top) move limit
11+
'eye_move_max' : (11, 5), # eye_image (right, bottom) move limit
12+
'upper_lid_open' : (11, -6), # upper_lid_image pos when open
13+
'upper_lid_center' : (11, -3), # " when eye centered
14+
'upper_lid_closed' : (11, 5), # " when closed
15+
'lower_lid_open' : (11, 17), # lower_lid_image pos when open
16+
'lower_lid_center' : (11, 16), # " when eye centered
17+
'lower_lid_closed' : (11, 13), # " when closed
18+
}
2.22 KB
Binary file not shown.
Binary file not shown.
3.05 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)