Corrected minor typos in README.md for the display libs (#42)

This commit is contained in:
David Tillotson 2021-02-09 14:01:58 +00:00 committed by GitHub
parent 71d5f0785c
commit 7db3bcfa15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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();