def set_contrast(self, contrast):
        """Sets the contrast of the display.  Contrast should be a value between
        0 and 255."""
        if contrast < 0 or contrast > 255:
            raise ValueError('Contrast must be a value from 0 to 255 (inclusive).')
        self.command(SSD1306_SETCONTRAST)
        self.command(contrast)
dataset/ETHPy150Open adafruit/Adafruit_Python_SSD1306/Adafruit_SSD1306/SSD1306.py/SSD1306Base.set_contrast/original