changeset 53:ffd7871811f2 encukou/fix-oled-example-1499766123089

Fix OLED example
author encukou <encukou@gmail.com>
date Tue, 11 Jul 2017 09:42:05 +0000
parents 65374c79d8ff
children f749ec2ab894
files shields.rst
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/shields.rst	Mon Jul 10 14:42:27 2017 +0200
+++ b/shields.rst	Tue Jul 11 09:42:05 2017 +0000
@@ -99,8 +99,9 @@
     i2c = I2C(-1, Pin(5), Pin(4))
     display = ssd1306.SSD1306_I2C(64, 48, i2c)
     display.fill(0)
-    display.text("Hello world!")
-    display.pixel(16, 16, 1)
+    display.text("Hello", 0, 0)
+    display.text("world!", 0, 8)
+    display.pixel(20, 20, 1)
     display.show()