File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ class Matrix16x8(HT16K33):
33
33
def pixel (self , x , y , color = None ):
34
34
"""Get or set the color of a given pixel."""
35
35
if not 0 <= x <= 15 :
36
- return
36
+ return None
37
37
if not 0 <= y <= 7 :
38
- return
38
+ return None
39
39
if x >= 8 :
40
40
x -= 8
41
41
y += 8
@@ -47,9 +47,9 @@ class Matrix8x8(HT16K33):
47
47
def pixel (self , x , y , color = None ):
48
48
"""Get or set the color of a given pixel."""
49
49
if not 0 <= x <= 7 :
50
- return
50
+ return None
51
51
if not 0 <= y <= 7 :
52
- return
52
+ return None
53
53
x = (x - 1 ) % 8
54
54
return super ()._pixel (x , y , color )
55
55
@@ -59,9 +59,9 @@ class Matrix8x8x2(HT16K33):
59
59
def pixel (self , x , y , color = None ):
60
60
"""Get or set the color of a given pixel."""
61
61
if not 0 <= x <= 7 :
62
- return
62
+ return None
63
63
if not 0 <= y <= 7 :
64
- return
64
+ return None
65
65
if color is not None :
66
66
super ()._pixel (y , x , (color & 0x01 ))
67
67
super ()._pixel (y + 8 , x , (color >> 1 ) & 0x01 )
You can’t perform that action at this time.
0 commit comments