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

pull/54/head
David Tillotson 2021-02-09 14:01:58 +00:00 zatwierdzone przez GitHub
rodzic 71d5f0785c
commit 7db3bcfa15
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

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