diff options
author | Christopher Baines <cbaines8@gmail.com> | 2011-03-26 21:25:34 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2011-03-26 21:25:34 +0000 |
commit | 2902377c1a314b469c70e83696bb0c004ae288bc (patch) | |
tree | aa9f7b312829a8eb979dc1021fb4179a2768242b | |
parent | 7a327de4c26026528c6b11715dd2d0097cd9a07a (diff) | |
download | snakerobot-2902377c1a314b469c70e83696bb0c004ae288bc.tar snakerobot-2902377c1a314b469c70e83696bb0c004ae288bc.tar.gz |
Inproved the code style, need to at button support and check if the serial speed can be incresed.
-rw-r--r-- | SnakeMaster/SnakeMaster.pde | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SnakeMaster/SnakeMaster.pde b/SnakeMaster/SnakeMaster.pde index 94256f6..e89bef3 100644 --- a/SnakeMaster/SnakeMaster.pde +++ b/SnakeMaster/SnakeMaster.pde @@ -120,6 +120,9 @@ void snakeDrawCircle(byte firstSectionNum, byte lastSectionNum, int arcRadius, i } } +// Regulator and Delay Stuff + +// This MUST be used instead of delay() or the regulator will not work! void snakeDelay(int time) { int endTime = (millis() + time); while (millis() < endTime) regulator(); @@ -167,6 +170,8 @@ void regulator() { } } +// Debug Stuff + void debugln(String message, int messageDebugLevel) { if (messageDebugLevel <= debugLevel) { if (messageDebugLevel == 1) { |