Corrected minor typos in README.md for the display libs (#42)
This commit is contained in:
parent
71d5f0785c
commit
7db3bcfa15
|
@ -51,13 +51,14 @@ int main() {
|
|||
|
||||
// draw a box to put some text in
|
||||
pico_display.set_pen(10, 20, 30);
|
||||
rect text_rect(10, 10, 150, 150);
|
||||
Rect text_rect(10, 10, 150, 150);
|
||||
pico_display.rectangle(text_rect);
|
||||
|
||||
// write some text inside the box with 10 pixels of margin
|
||||
// automatically word wrapping
|
||||
text_rect.deflate(10);
|
||||
pico_display.text("This is a message", point(text_rect.x, text_rect.y), text_rect.w);
|
||||
pico_display.set_pen(110, 120, 130);
|
||||
pico_display.text("This is a message", Point(text_rect.x, text_rect.y), text_rect.w);
|
||||
|
||||
// now we've done our drawing let's update the screen
|
||||
pico_display.update();
|
||||
|
|
Loading…
Reference in New Issue