Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

rename, static var that might outlast function

  • Loading branch information...
commit 52adcd87c364600e926c187d9b4cc8f144cefe49 1 parent 3c4c107
Karl Anderson kra authored
13 effects/foo/foo.ino → effects/serial/serial.ino
... ... @@ -1,9 +1,6 @@
1   -/* USB to Serial - Teensy becomes a USB to Serial converter
2   - http://dorkbotpdx.org/blog/paul/teensy_as_benito_at_57600_baud
3   -
4   - You must select Serial from the "Tools > USB Type" menu
5   -
6   - This example code is in the public domain.
  1 +/*
  2 + Example of getting commands over USB serial.
  3 + Must select Serial from the "Tools > USB Type" menu.
7 4 */
8 5
9 6 #define MY_TYPE "START"
@@ -56,9 +53,11 @@ int parseCommand(const String &cmd)
56 53 return mask;
57 54 }
58 55
  56 +// must be outside of function, http://arduino.cc/forum/index.php?topic=73177.0
  57 +static String command = "";
  58 +
59 59 String getCommand()
60 60 {
61   - String command = "";
62 61 char c;
63 62 while (Serial.available()) {
64 63 c = Serial.read();
0  effects/foo/test.py → effects/serial/test.py
File renamed without changes

0 comments on commit 52adcd8

Please sign in to comment.
Something went wrong with that request. Please try again.