File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
PyPortal_Smart_Thermometer Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,13 @@ def set_icon(self, filename):
136
136
self ._icon_file .close ()
137
137
138
138
# CircuitPython 6 & 7 compatible
139
- self ._icon_file = open (filename , "rb" )
140
- icon = displayio .OnDiskBitmap (self ._icon_file )
141
- self ._icon_sprite = displayio .TileGrid (icon ,
142
- pixel_shader = getattr (icon , 'pixel_shader' , displayio .ColorConverter ()))
139
+ # self._icon_file = open(filename, "rb")
140
+ # icon = displayio.OnDiskBitmap(self._icon_file)
141
+ # self._icon_sprite = displayio.TileGrid(icon,
142
+ # pixel_shader=getattr(icon, 'pixel_shader', displayio.ColorConverter()))
143
143
144
144
# # CircuitPython 7+ compatible
145
- # icon = displayio.OnDiskBitmap(filename)
146
- # self._icon_sprite = displayio.TileGrid(icon, pixel_shader=icon.pixel_shader)
145
+ icon = displayio .OnDiskBitmap (filename )
146
+ self ._icon_sprite = displayio .TileGrid (icon , pixel_shader = icon .pixel_shader )
147
147
148
148
self ._icon_group .append (self ._icon_sprite )
You can’t perform that action at this time.
0 commit comments