Browse Source

Display digit as it is spoken

jamesbowman 8 years ago
parent
commit
674668c1b9
1 changed files with 8 additions and 1 deletions
  1. 8 1
      noisy.ino

+ 8 - 1
noisy.ino

@@ -37,5 +37,12 @@ static void saydigit(byte n)
 
 void loop()
 {
-  saydigit(GD.random(10)); delay(1000);
+  int n = GD.random(10);
+
+  GD.Clear();
+  GD.cmd_number(240, 136, 31, OPT_CENTER, n);
+  GD.swap();
+
+  saydigit(n);
+  delay(1000);
 } //' }A