diff --git a/adafruit_progressbar.py b/adafruit_progressbar.py index 6af3b19..9b4623b 100755 --- a/adafruit_progressbar.py +++ b/adafruit_progressbar.py @@ -80,8 +80,9 @@ def __init__( self._palette[1] = outline_color self._palette[2] = bar_color - self._width = width - self._height = height + # _width and _height are already in use for blinka TileGrid + self._bar_width = width + self._bar_height = height self._progress_val = 0.0 self.progress = self._progress_val @@ -146,14 +147,14 @@ def width(self): """The width of the progress bar. In pixels, includes the border. """ - return self._width + return self._bar_width @property def height(self): """The height of the progress bar. In pixels, includes the border. """ - return self._height + return self._bar_height @fill.setter def fill(self, color):