From 7db3bcfa15738fbe39e6f7e9720239fdeae84990 Mon Sep 17 00:00:00 2001 From: David Tillotson Date: Tue, 9 Feb 2021 14:01:58 +0000 Subject: [PATCH] Corrected minor typos in README.md for the display libs (#42) --- libraries/pico_display/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/pico_display/README.md b/libraries/pico_display/README.md index f82c1025..0951583c 100644 --- a/libraries/pico_display/README.md +++ b/libraries/pico_display/README.md @@ -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(); @@ -119,4 +120,4 @@ To display your changes on Pico Display's screen you need to call `update`: ```c++ pico_display.update(); -``` \ No newline at end of file +```