code formatting
parent
8636ebbdff
commit
ec5a118e9b
|
@ -1,12 +1,16 @@
|
||||||
The inbuilt LCD driver has a number of functions defining its behaviour:
|
The inbuilt LCD driver has a number of functions defining its behaviour:
|
||||||
|
|
||||||
* lcd.clear() # clears the ecreen
|
```python
|
||||||
* lcd.reset(x,y) # clears the pixel at x,y to a 0 or empty state
|
lcd.clear() # clears the ecreen
|
||||||
* lcd.set(x,y) # sets the pixel on at position x,y
|
lcd.reset(x,y) # clears the pixel at x,y to a 0 or empty state
|
||||||
* lcd.get(x,y) # gets a 0 or 1 indicating the off/on state of the pixel at x,y
|
lcd.set(x,y) # sets the pixel on at position x,y
|
||||||
* lcd.show() # updates the display and forces a redraw.
|
lcd.get(x,y) # returns a 0 or 1 indicating the off/on state of the pixel at x,y
|
||||||
|
lcd.show() # updates the display and forces a redraw.
|
||||||
|
```
|
||||||
!!how do we set the mode for a given lcd device.
|
!!how do we set the mode for a given lcd device.
|
||||||
|
!! if its byte mapped instead of pixel mapped what do we get back from a get()
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
* aaa
|
```
|
||||||
|
lcd.clear()
|
||||||
|
```
|
Loading…
Reference in New Issue