From 13ef783c104387492816bec466ff3f4374dd0902 Mon Sep 17 00:00:00 2001 From: Wen Myers Date: Fri, 11 Sep 2020 03:30:11 +0000 Subject: [PATCH] Update README.rst As discussed in issue #50, the readme example code only blanks the screen. To make it match the examples and actually display something, I've updated it to be identical to the `simpletest` example which it looks to have been drawn from. --- README.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.rst b/README.rst index 6d201fa..17ce954 100644 --- a/README.rst +++ b/README.rst @@ -89,6 +89,13 @@ Usage Example display.show() + # Set a pixel in the origin 0,0 position. + display.pixel(0, 0, 1) + # Set a pixel in the middle 64, 16 position. + display.pixel(64, 16, 1) + # Set a pixel in the opposite 127, 31 position. + display.pixel(127, 31, 1) + display.show() More examples and details can be found in the `adafruit_framebuf docs `__.