Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. #include <avr/pgmspace.h>
  2.  
  3. #define SPEED_WPM35 40
  4. #define SPEED_WPM27 50
  5. #define SPEED_WPM23 60
  6. #define SPEED_WPM20 70
  7. #define SPEED_WPM15 90
  8. #define SPEED_WPM10 140
  9.  
  10. #define DIT 1
  11. #define DAH 3
  12. #define CHAR_DELAY 3
  13. #define WORD_DELAY 9
  14.  
  15. const word morse[] PROGMEM = {
  16. 0b111111, //0
  17. 0b101111,
  18. 0b100111,
  19. 0b100011,
  20. 0b100001,
  21. 0b100000,
  22. 0b110000,
  23. 0b111000,
  24. 0b111100,
  25. 0b111110,
  26. B0, //10
  27. B0,
  28. B0,
  29. B0,
  30. B0,
  31. B0,
  32. B0,
  33. B0,
  34. B0,
  35. B0,
  36. B0, //20
  37. B0,
  38. B0,
  39. B0,
  40. B0,
  41. B0,
  42. B0,
  43. B0,
  44. B0,
  45. B0,
  46. B0, //30
  47. B0,
  48. 0b1100000001000000, //space
  49. B1101011, //!
  50. B1010010, //"
  51. 0x87FF, //#
  52. B10001001, //$
  53. B0, //%
  54. B101000, //&
  55. B1011110, //'
  56. B110110, //( 40
  57. B1101101, //)
  58. B0, //*
  59. B101010, //+
  60. B1110011, //,
  61. B1100001, //-
  62. B1010101, //.
  63. B110010, ///
  64. B111111, //0
  65. B101111, //1
  66. B100111, //2 50
  67. B100011, //3
  68. B100001, //4
  69. B100000, //5
  70. B110000, //6
  71. B111000, //7
  72. B111100, //8
  73. B111110, //9
  74. B1111000, //:
  75. B1111000, //;
  76. B0, //< 60
  77. B110001, //=
  78. B0, //>
  79. B1001100, //?
  80. B1011010, //@
  81. B101, //A
  82. B11000, //B
  83. B11010, //C
  84. B1100, //D
  85. B10, //E
  86. B10010, //F 70
  87. B1110, //G
  88. B10000, //H
  89. B100, //I
  90. B10111, //J
  91. B1101, //K
  92. B10100, //L
  93. B111, //M
  94. B110, //N
  95. B1111, //O
  96. B10110, //P 80
  97. B11101, //Q
  98. B1010, //R
  99. B1000, //S
  100. B11, //T
  101. B1001, //U
  102. B10001, //V
  103. B1011, //W
  104. B11001, //X
  105. B11011, //Y
  106. B1100, //Z 90
  107. B0, //[
  108. B0, //\
  109. B0, //]
  110. B0, //^
  111. B1001101, //_
  112. B0, //`
  113. B101, //a
  114. B11000, //b
  115. B11010, //c
  116. B1100, //d 100
  117. B10, //e
  118. B10010, //f
  119. B110, //g
  120. B10000, //h
  121. B100, //i
  122. B10111, //j
  123. B1101, //k
  124. B10100, //l
  125. B111, //m
  126. B110, //n 110
  127. B1111, //o
  128. B10110, //p
  129. B11101, //q
  130. B1010, //r
  131. B1000, //s
  132. B11, //t
  133. B1001, //u
  134. B10001, //v
  135. B1011, //w
  136. B11001, //x 120
  137. B11011, //y
  138. B11100, //z
  139. B0, //{
  140. B0, //|
  141. B0, //}
  142. B0, //~
  143. B0 //<delete>
  144. };
  145.  
  146.  
  147. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement