We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd11ae3 + d439a49 commit 51d5966Copy full SHA for 51d5966
ulab_Crunch_Numbers_Fast/waterfall/code.py
@@ -36,15 +36,15 @@
36
class RollingGraph(displayio.TileGrid):
37
def __init__(self, scale=2):
38
# Create a bitmap with heatmap colors
39
- self.bitmap = displayio.Bitmap(display.width//scale,
+ self._bitmap = displayio.Bitmap(display.width//scale,
40
display.height//scale, len(palette))
41
- super().__init__(self.bitmap, pixel_shader=palette)
+ super().__init__(self._bitmap, pixel_shader=palette)
42
43
self.scroll_offset = 0
44
45
def show(self, data):
46
y = self.scroll_offset
47
- bitmap = self.bitmap
+ bitmap = self._bitmap
48
49
board.DISPLAY.auto_refresh = False
50
offset = max(0, (bitmap.width-len(data))//2)
0 commit comments