Browse Source

Minor sketch cleanups

jamesbowman 8 years ago
parent
commit
bd40f2e055
3 changed files with 6 additions and 2 deletions
  1. 5 0
      chess.ino
  2. 0 1
      jnr.ino
  3. 1 1
      viewer.ino

+ 5 - 0
chess.ino

@@ -4,6 +4,11 @@
 
 #include "chess_assets.h"
 
+static byte sinus(byte x)
+{
+  return 128 + GD.rsin(128, -16384 + (x << 7));
+}
+
 void setup()
 {
   Serial.begin(1000000);    // JCB

+ 0 - 1
jnr.ino

@@ -168,6 +168,5 @@ void loop()
   }
 #endif  // }JCB
   int t;
-  caption(t++, "Graphics by http://www.robotality.com");  // JCB
   GD.swap();
 }

+ 1 - 1
viewer.ino

@@ -36,7 +36,7 @@ public:
 
 void setup()
 {
-  Serial.begin(115200);
+  Serial.begin(1000000);   // JCB
   GD.begin();
 }