modes.py 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. """
  2. This module defines available modes for use with TEXT files
  3. (:class:`alphasign.text.Text`).
  4. The following display modes are defined:
  5. * :const:`ROTATE`
  6. * :const:`HOLD`
  7. * :const:`ROLL_UP`
  8. * :const:`ROLL_DOWN`
  9. * :const:`ROLL_LEFT`
  10. * :const:`ROLL_RIGHT`
  11. * :const:`WIPE_UP`
  12. * :const:`WIPE_DOWN`
  13. * :const:`WIPE_LEFT`
  14. * :const:`WIPE_RIGHT`
  15. * :const:`SCROLL`
  16. * :const:`AUTOMODE`
  17. * :const:`ROLL_IN`
  18. * :const:`ROLL_OUT`
  19. * :const:`WIPE_IN`
  20. * :const:`WIPE_OUT`
  21. * :const:`COMPRESSED_ROTATE` (works only on certain sign models)
  22. * :const:`EXPLODE` (Alpha 3.0 protocol only)
  23. * :const:`CLOCK` (Alpha 3.0 protocol only)
  24. The following special modes are defined:
  25. * :const:`TWINKLE`
  26. * :const:`SPARKLE`
  27. * :const:`SNOW`
  28. * :const:`INTERLOCK`
  29. * :const:`SWITCH`
  30. * :const:`SLIDE` (only Betabrite 1036)
  31. * :const:`SPRAY`
  32. * :const:`STARBURST`
  33. * :const:`WELCOME`
  34. * :const:`SLOT_MACHINE`
  35. * :const:`NEWS_FLASH` (only Betabrite 1036)
  36. * :const:`TRUMPET_ANIMATION` (only Betabrite (1036)
  37. * :const:`CYCLE_COLORS` (only AlphaEclipse 3600)
  38. Special graphics are modes which display graphics before the message. The
  39. following special graphics are defined:
  40. * :const:`THANK_YOU`
  41. * :const:`NO_SMOKING`
  42. * :const:`DONT_DRINK_DRIVE`
  43. * :const:`RUNNING_ANIMAL`
  44. * :const:`FISH_ANIMATION`
  45. * :const:`FIREWORKS`
  46. * :const:`TURBO_CAR`
  47. * :const:`BALLOON_ANIMATION`
  48. * :const:`CHERRY_BOMB`
  49. """
  50. # Normal display modes
  51. ROTATE = "a"
  52. HOLD = "b"
  53. FLASH = "c"
  54. ROLL_UP = "e"
  55. ROLL_DOWN = "f"
  56. ROLL_LEFT = "g"
  57. ROLL_RIGHT = "h"
  58. WIPE_UP = "i"
  59. WIPE_DOWN = "j"
  60. WIPE_LEFT = "k"
  61. WIPE_RIGHT = "l"
  62. SCROLL = "m"
  63. AUTOMODE = "o"
  64. ROLL_IN = "p"
  65. ROLL_OUT = "q"
  66. WIPE_IN = "r"
  67. WIPE_OUT = "s"
  68. COMPRESSED_ROTATE = "t"
  69. EXPLODE = "u"
  70. CLOCK = "v"
  71. # Special modes
  72. TWINKLE = "n0"
  73. SPARKLE = "n1"
  74. SNOW = "n2"
  75. INTERLOCK = "n3"
  76. SWITCH = "n4"
  77. SLIDE = "n5"
  78. SPRAY = "n6"
  79. STARBURST = "n7"
  80. WELCOME = "n8"
  81. SLOT_MACHINE = "n9"
  82. NEWS_FLASH = "nA"
  83. TRUMPET_ANIMATION = "nB"
  84. CYCLE_COLORS = "nC"
  85. # Special graphics
  86. THANK_YOU = "nS"
  87. NO_SMOKING = "nU"
  88. DONT_DRINK_DRIVE = "nV"
  89. RUNNING_ANIMAL = "nW"
  90. FISH_ANIMATION = "nW"
  91. FIREWORKS = "nX"
  92. TURBO_CAR = "nY"
  93. BALLOON_ANIMATION = "nY"
  94. CHERRY_BOMB = "nZ"