From ec5a118e9ba6effc1065fce8fd56fa2bd5336385 Mon Sep 17 00:00:00 2001 From: Neon22 Date: Sun, 29 Dec 2013 14:20:43 -0800 Subject: [PATCH] code formatting --- LCD-driver.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/LCD-driver.md b/LCD-driver.md index 741d368..bcb8cf5 100644 --- a/LCD-driver.md +++ b/LCD-driver.md @@ -1,12 +1,16 @@ The inbuilt LCD driver has a number of functions defining its behaviour: -* lcd.clear() # clears the ecreen -* lcd.reset(x,y) # clears the pixel at x,y to a 0 or empty state -* lcd.set(x,y) # sets the pixel on at position x,y -* lcd.get(x,y) # gets a 0 or 1 indicating the off/on state of the pixel at x,y -* lcd.show() # updates the display and forces a redraw. - +```python +lcd.clear() # clears the ecreen +lcd.reset(x,y) # clears the pixel at x,y to a 0 or empty state +lcd.set(x,y) # sets the pixel on at position x,y +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. +!! if its byte mapped instead of pixel mapped what do we get back from a get() Example: -* aaa \ No newline at end of file +``` +lcd.clear() +``` \ No newline at end of file