浏览代码

Display digit as it is spoken

jamesbowman 8 年之前
父节点
当前提交
674668c1b9
共有 1 个文件被更改,包括 8 次插入1 次删除
  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