why does it fix other things but not quotes
This commit is contained in:
parent
44d27ef09a
commit
ad43377a5e
@ -14,7 +14,7 @@ class oled(Extension):
|
|||||||
self,
|
self,
|
||||||
board,
|
board,
|
||||||
views,
|
views,
|
||||||
toDisplay: str = "TXT",
|
toDisplay: str = 'TXT',
|
||||||
oWidth: int = 128,
|
oWidth: int = 128,
|
||||||
oHeight: int = 32,
|
oHeight: int = 32,
|
||||||
flip: bool = False,
|
flip: bool = False,
|
||||||
@ -37,9 +37,9 @@ class oled(Extension):
|
|||||||
|
|
||||||
def returnCurrectRenderText(self, layer, singleView):
|
def returnCurrectRenderText(self, layer, singleView):
|
||||||
# for now we only have static things and react to layers. But when we react to battery % and wpm we can handle the logic here
|
# for now we only have static things and react to layers. But when we react to battery % and wpm we can handle the logic here
|
||||||
if singleView[0] == "STATIC":
|
if singleView[0] == 'STATIC':
|
||||||
return singleView[1][0]
|
return singleView[1][0]
|
||||||
if singleView[0] == "LAYER":
|
if singleView[0] == 'LAYER':
|
||||||
return singleView[1][layer]
|
return singleView[1][layer]
|
||||||
|
|
||||||
def renderOledTextLayer(self, layer):
|
def renderOledTextLayer(self, layer):
|
||||||
@ -94,9 +94,9 @@ class oled(Extension):
|
|||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
||||||
def updateOLED(self, sandbox):
|
def updateOLED(self, sandbox):
|
||||||
if self._toDisplay == "TXT":
|
if self._toDisplay == 'TXT':
|
||||||
self.renderOledTextLayer(sandbox.active_layers[0])
|
self.renderOledTextLayer(sandbox.active_layers[0])
|
||||||
if self._toDisplay == "IMG":
|
if self._toDisplay == 'IMG':
|
||||||
self.renderOledImgLayer(sandbox.active_layers[0])
|
self.renderOledImgLayer(sandbox.active_layers[0])
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user