parameters: (self)
docstring: Clear contents of image buffer
docstring_summary: Clear contents of image buffer
docstring_tokens: Clear contents of image buffer
function: 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])
function_tokens: 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 ] )