Guest User

Untitled

a guest
Dec 1st, 2015
5,411
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. int led = 13;
  3.  
  4.  
  5.  
  6.  
  7. void setup() {
  8.  
  9. pinMode(led, OUTPUT);
  10. }
  11.  
  12.  
  13. void loop() {
  14. // dot
  15. //digitalWrite(led, HIGH);
  16. //delay(250);
  17. //digitalWrite(led, LOW);
  18. //delay(250);
  19.  
  20. //dash
  21. //digitalWrite(led, HIGH);
  22. //delay(500);
  23. //digitalWrite(led, LOW);
  24. //delay(250);
  25.  
  26. //short break
  27. //delay(250);
  28.  
  29. //long break
  30. //delay(500)
  31. //------------------------------
  32. // dot
  33. digitalWrite(led, HIGH);
  34. delay(150);
  35. digitalWrite(led, LOW);
  36. delay(150);
  37. // dot
  38. digitalWrite(led, HIGH);
  39. delay(150);
  40. digitalWrite(led, LOW);
  41. delay(150);
  42. //dash
  43. digitalWrite(led, HIGH);
  44. delay(300);
  45. digitalWrite(led, LOW);
  46. delay(150);
  47. //dash
  48. digitalWrite(led, HIGH);
  49. delay(300);
  50. digitalWrite(led, LOW);
  51. delay(150);
  52. //dash
  53. digitalWrite(led, HIGH);
  54. delay(300);
  55. digitalWrite(led, LOW);
  56. delay(300);
  57.  
  58. //dash
  59. digitalWrite(led, HIGH);
  60. delay(300);
  61. digitalWrite(led, LOW);
  62. delay(150);
  63. //dash
  64. digitalWrite(led, HIGH);
  65. delay(300);
  66. digitalWrite(led, LOW);
  67. delay(150);
  68. //dash
  69. digitalWrite(led, HIGH);
  70. delay(300);
  71. digitalWrite(led, LOW);
  72. delay(150);
  73. //dash
  74. digitalWrite(led, HIGH);
  75. delay(300);
  76. digitalWrite(led, LOW);
  77. delay(150);
  78. //dash
  79. digitalWrite(led, HIGH);
  80. delay(300);
  81. digitalWrite(led, LOW);
  82. delay(300);
  83.  
  84. // dot
  85. digitalWrite(led, HIGH);
  86. delay(150);
  87. digitalWrite(led, LOW);
  88. delay(150);
  89. //dash
  90. digitalWrite(led, HIGH);
  91. delay(300);
  92. digitalWrite(led, LOW);
  93. delay(150);
  94. //dash
  95. digitalWrite(led, HIGH);
  96. delay(300);
  97. digitalWrite(led, LOW);
  98. delay(150);
  99. //dash
  100. digitalWrite(led, HIGH);
  101. delay(300);
  102. digitalWrite(led, LOW);
  103. delay(150);
  104. //dash
  105. digitalWrite(led, HIGH);
  106. delay(300);
  107. digitalWrite(led, LOW);
  108. delay(600);
  109.  
  110. // dot
  111. digitalWrite(led, HIGH);
  112. delay(150);
  113. digitalWrite(led, LOW);
  114. delay(150);
  115. // dot
  116. digitalWrite(led, HIGH);
  117. delay(150);
  118. digitalWrite(led, LOW);
  119. delay(150);
  120. // dot
  121. digitalWrite(led, HIGH);
  122. delay(150);
  123. digitalWrite(led, LOW);
  124. delay(150);
  125. // dot
  126. digitalWrite(led, HIGH);
  127. delay(150);
  128. digitalWrite(led, LOW);
  129. delay(150);
  130. // dot
  131. digitalWrite(led, HIGH);
  132. delay(150);
  133. digitalWrite(led, LOW);
  134. delay(600);
  135.  
  136. //dash
  137. digitalWrite(led, HIGH);
  138. delay(300);
  139. digitalWrite(led, LOW);
  140. delay(300);
  141.  
  142. // dot
  143. digitalWrite(led, HIGH);
  144. delay(150);
  145. digitalWrite(led, LOW);
  146. delay(150);
  147. // dot
  148. digitalWrite(led, HIGH);
  149. delay(150);
  150. digitalWrite(led, LOW);
  151. delay(150);
  152. // dot
  153. digitalWrite(led, HIGH);
  154. delay(150);
  155. digitalWrite(led, LOW);
  156. delay(150);
  157. // dot
  158. digitalWrite(led, HIGH);
  159. delay(150);
  160. digitalWrite(led, LOW);
  161. delay(300);
  162.  
  163. // dot
  164. digitalWrite(led, HIGH);
  165. delay(150);
  166. digitalWrite(led, LOW);
  167. delay(300);
  168.  
  169. // dot
  170. digitalWrite(led, HIGH);
  171. delay(150);
  172. digitalWrite(led, LOW);
  173. delay(150);
  174. //dash
  175. digitalWrite(led, HIGH);
  176. delay(300);
  177. digitalWrite(led, LOW);
  178. delay(150);
  179. // dot
  180. digitalWrite(led, HIGH);
  181. delay(150);
  182. digitalWrite(led, LOW);
  183. delay(300);
  184.  
  185. // dot
  186. digitalWrite(led, HIGH);
  187. delay(150);
  188. digitalWrite(led, LOW);
  189. delay(600);
  190.  
  191. // dot
  192. digitalWrite(led, HIGH);
  193. delay(150);
  194. digitalWrite(led, LOW);
  195. delay(150);
  196. //dash
  197. digitalWrite(led, HIGH);
  198. delay(300);
  199. digitalWrite(led, LOW);
  200. delay(150);
  201. //dash
  202. digitalWrite(led, HIGH);
  203. delay(300);
  204. digitalWrite(led, LOW);
  205. delay(300);
  206.  
  207. // dot
  208. digitalWrite(led, HIGH);
  209. delay(150);
  210. digitalWrite(led, LOW);
  211. delay(150);
  212. // dot
  213. digitalWrite(led, HIGH);
  214. delay(150);
  215. digitalWrite(led, LOW);
  216. delay(300);
  217.  
  218. // dot
  219. digitalWrite(led, HIGH);
  220. delay(150);
  221. digitalWrite(led, LOW);
  222. delay(150);
  223. //dash
  224. digitalWrite(led, HIGH);
  225. delay(300);
  226. digitalWrite(led, LOW);
  227. delay(150);
  228. // dot
  229. digitalWrite(led, HIGH);
  230. delay(150);
  231. digitalWrite(led, LOW);
  232. delay(150);
  233. // dot
  234. digitalWrite(led, HIGH);
  235. delay(150);
  236. digitalWrite(led, LOW);
  237. delay(300);
  238.  
  239. // dot
  240. digitalWrite(led, HIGH);
  241. delay(150);
  242. digitalWrite(led, LOW);
  243. delay(150);
  244. //dash
  245. digitalWrite(led, HIGH);
  246. delay(300);
  247. digitalWrite(led, LOW);
  248. delay(150);
  249. // dot
  250. digitalWrite(led, HIGH);
  251. delay(150);
  252. digitalWrite(led, LOW);
  253. delay(150);
  254. // dot
  255. digitalWrite(led, HIGH);
  256. delay(150);
  257. digitalWrite(led, LOW);
  258. delay(600);
  259.  
  260. //dash
  261. digitalWrite(led, HIGH);
  262. delay(300);
  263. digitalWrite(led, LOW);
  264. delay(150);
  265. // dot
  266. digitalWrite(led, HIGH);
  267. delay(150);
  268. digitalWrite(led, LOW);
  269. delay(150);
  270. // dot
  271. digitalWrite(led, HIGH);
  272. delay(150);
  273. digitalWrite(led, LOW);
  274. delay(150);
  275. // dot
  276. digitalWrite(led, HIGH);
  277. delay(150);
  278. digitalWrite(led, LOW);
  279. delay(300);
  280.  
  281. // dot
  282. digitalWrite(led, HIGH);
  283. delay(150);
  284. digitalWrite(led, LOW);
  285. delay(600);
  286.  
  287. //dash
  288. digitalWrite(led, HIGH);
  289. delay(300);
  290. digitalWrite(led, LOW);
  291. delay(300);
  292.  
  293. // dot
  294. digitalWrite(led, HIGH);
  295. delay(150);
  296. digitalWrite(led, LOW);
  297. delay(150);
  298. // dot
  299. digitalWrite(led, HIGH);
  300. delay(150);
  301. digitalWrite(led, LOW);
  302. delay(150);
  303. // dot
  304. digitalWrite(led, HIGH);
  305. delay(150);
  306. digitalWrite(led, LOW);
  307. delay(150);
  308. // dot
  309. digitalWrite(led, HIGH);
  310. delay(150);
  311. digitalWrite(led, LOW);
  312. delay(300);
  313.  
  314. // dot
  315. digitalWrite(led, HIGH);
  316. delay(150);
  317. digitalWrite(led, LOW);
  318. delay(150);
  319. //dash
  320. digitalWrite(led, HIGH);
  321. delay(300);
  322. digitalWrite(led, LOW);
  323. delay(150);
  324. // dot
  325. digitalWrite(led, HIGH);
  326. delay(150);
  327. digitalWrite(led, LOW);
  328. delay(300);
  329.  
  330. // dot
  331. digitalWrite(led, HIGH);
  332. delay(150);
  333. digitalWrite(led, LOW);
  334. delay(300);
  335.  
  336. // dot
  337. digitalWrite(led, HIGH);
  338. delay(150);
  339. digitalWrite(led, LOW);
  340. delay(1200);
  341.  
  342. }
RAW Paste Data