Browse Source

Moving counters to separate file

Matt Sparks 15 years ago
parent
commit
ef4705d72f
3 changed files with 8 additions and 12 deletions
  1. 2 1
      alphasign/__init__.py
  2. 0 11
      alphasign/constants.py
  3. 6 0
      alphasign/counters.py

+ 2 - 1
alphasign/__init__.py

@@ -17,4 +17,5 @@ import colors
 import positions
 import modes
 import speeds
-import extchars
+import extchars
+import counters

+ 0 - 11
alphasign/constants.py

@@ -1,14 +1,3 @@
-# Counters
-# We have 5 of them.
-counters = {
-  1:                    "z",
-  2:                    "{",
-  3:                    "|",
-  4:                    "}",
-  5:                    "-",
-}
-
-
 # Command Codes
 WRITE_TEXT            = "A"  # Write TEXT file (p18)
 READ_TEXT             = "B"  # Read TEXT file (p19)

+ 6 - 0
alphasign/counters.py

@@ -0,0 +1,6 @@
+# Counters
+COUNTER_1 = "\x08z"
+COUNTER_2 = "\x08{"
+COUNTER_3 = "\x08|"
+COUNTER_4 = "\x08}"
+COUNTER_5 = "\x08-"