From 741051ea6e16a8eb95b593213bdc221be43c6260 Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Fri, 8 Jul 2022 14:41:33 +0100 Subject: [PATCH] README.md: Example code illustrates monochrome use. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7784afa..added07 100644 --- a/README.md +++ b/README.md @@ -407,6 +407,7 @@ from gui.core.colors import * # Standard color constants CWriter.set_textpos(ssd, 0, 0) # In case previous tests have altered it # Instantiate any CWriters to be used (one for each font) wri = CWriter(ssd, arial10, GREEN, BLACK, verbose=False) # Colors are defaults +# wri = Writer(ssd, arial10, verbose=False) # Monochrome display uses Writer wri.set_clip(True, True, False) ``` Calling `nanogui.refresh` on startup sets up and clears the display. The method