(self)
Clear contents of image buffer
Clear contents of image buffer
Clear contents of image buffer
def clear(self):
        """Clear contents of image buffer"""
        _buffer = [0xff] * (self.width * self.height * 2)
        self.SetWindows(0, 0, self.width, self.height)
        GPIO.output(self._dc, GPIO.HIGH)
        for i in range(0, len(_buffer), 4096):
            self._spi.writebytes(_buffer[i:i + 4096])
def clear ( self ) : _buffer = [ 0xff ] * ( self . width * self . height * 2 ) self . SetWindows ( 0 , 0 , self . width , self . height ) GPIO . output ( self . _dc , GPIO . HIGH ) for i in range ( 0 , len ( _buffer ) , 4096 ) : self . _spi . writebytes ( _buffer [ i : i + 4096 ] )