Update README.md
Edits for PEP8 consistency: variable casing/underlining, spacing after parameter commas. Added method for obtaining char value.
This commit is contained in:
parent
b59b3d2d9e
commit
6003f8ee06
|
@ -112,7 +112,7 @@ picodisplay.set_pen(r,g,b)
|
|||
Creates a pen which can be stored as a variable for faster re-use of the same colour through calls to `set_pen`. The values for `r`, `g` and `b` should be from 0-255 inclusive.
|
||||
|
||||
```python
|
||||
penColour = picodisplay.create_pen(r,g,b)
|
||||
pen_colour = picodisplay.create_pen(r, g, b)
|
||||
picodisplay.set_pen(penColour)
|
||||
```
|
||||
|
||||
|
@ -161,8 +161,9 @@ picodisplay.rectangle(x,y,w,h)
|
|||
Draws a single character to the display buffer in the current pen colour. The `c` parameter should be the ASCII numerical representation of the character to be printed, `x` and `y` describe the top-left corner of the character's drawing field. The `character` function can also be given an optional 4th parameter, `scale`, describing the scale of the character to be drawn. Default value is 2.
|
||||
|
||||
```python
|
||||
picodisplay.character(c,x,y)
|
||||
picodisplay.character(c,x,y,scale)
|
||||
char_a = ord('a')
|
||||
picodisplay.character(char_a, x, y)
|
||||
picodisplay.character(char_a, x, y, scale)
|
||||
```
|
||||
|
||||
### text
|
||||
|
|
Loading…
Reference in New Issue