Browse Source

Add on-screen message

jamesbowman 8 years ago
parent
commit
c82cf8b61b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      sketch.ino

+ 5 - 0
sketch.ino

@@ -8,9 +8,14 @@ void setup() //' a{
   GD.begin();
   GD.cmd_memset(0, 0, 480UL * 272UL);   // clear the bitmap
   GD.Clear();                           // draw the bitmap
+
+  GD.ColorRGB(0x101020);
+  GD.cmd_text(240, 136, 31, OPT_CENTER, "sketch demo");
+
   GD.BitmapLayout(L8, 480, 272);
   GD.BitmapSize(NEAREST, BORDER, BORDER, 480, 272);
   GD.Begin(BITMAPS);
+  GD.ColorRGB(0xffffff);
   GD.Vertex2ii(0, 0);
   GD.swap();
   GD.cmd_sketch(0, 0, 480, 272, 0, L8); // start sketching