MCPcopy Index your code
hub / github.com/RetiredWizard/PyDOS / clear

Method clear

cpython/lib/lcd_api.py:68–75  ·  view source on GitHub ↗

Clears the LCD display and moves the cursor to the top left corner.

(self)

Source from the content-addressed store, hash-verified

66 self.display_on()
67
68 def clear(self):
69 """Clears the LCD display and moves the cursor to the top left
70 corner.
71 """
72 self.hal_write_command(self.LCD_CLR)
73 self.hal_write_command(self.LCD_HOME)
74 self.cursor_x = 0
75 self.cursor_y = 0
76
77 def show_cursor(self):
78 """Causes the cursor to be made visible."""

Callers 7

__init__Method · 0.95
PyDOSFunction · 0.80
basicpython.pyFile · 0.80
deleteMethod · 0.80
deleteMethod · 0.80
__stopstmtMethod · 0.80
__restorestmtMethod · 0.80

Calls 1

hal_write_commandMethod · 0.95

Tested by

no test coverage detected