MinitelGoogleSearch.ino 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /**
  2. * Minitel library for Arduino (v0.1) / May 2013
  3. * http://github.com/01010101/Minitel
  4. *
  5. * By Jerome Saint-Clair aka 01010101
  6. * http://saint-clair.net
  7. *
  8. * For the Graffiti Research Lab France
  9. * http://graffitiresearchlab.fr
  10. *
  11. * Based on works by the Tetalab (Fabrice, Renaud, PG & Phil)
  12. * http://tetalab.org
  13. */
  14. #include <SoftwareSerial.h>
  15. #include <Minitel.h>
  16. Minitel m;
  17. void setup() {
  18. }
  19. void loop() {
  20. m.clearScreen();
  21. m.graphicMode();
  22. m.pixelate();
  23. m.graphic("000001", 1, 1);
  24. m.graphic("011000");
  25. m.graphic("110000");
  26. m.graphic("110000");
  27. m.graphic("101101");
  28. m.graphic("000010");
  29. m.graphic("100010", 1, 2);
  30. m.graphic("000000");
  31. m.graphic("000110");
  32. m.graphic("000110");
  33. m.graphic("000110");
  34. m.graphic("000110");
  35. m.graphic("000001", 1, 3);
  36. m.graphic("011001");
  37. m.graphic("011001");
  38. m.graphic("011001");
  39. m.graphic("011000");
  40. m.graphic("000001");
  41. m.graphic("100001", 1, 4);
  42. m.graphic("100010");
  43. m.graphic("100000");
  44. m.graphic("100000");
  45. m.graphic("000000");
  46. m.graphic("000110");
  47. m.graphic("000000", 1, 5);
  48. m.graphic("110100");
  49. m.graphic("001100");
  50. m.graphic("001100");
  51. m.graphic("011000");
  52. m.noPixelate();
  53. m.textMode();
  54. m.invertVideo();
  55. m.textColor(CYAN);
  56. m.bgColor(WHITE);
  57. m.text(" RECHERCHE ", 13, 1);
  58. m.graphicMode();
  59. m.graphic("111110");
  60. m.graphic("110000");
  61. m.graphic("111110");
  62. m.graphic("110000");
  63. m.graphic("111111");
  64. m.textMode();
  65. m.text(" PAR NOM ", 13, 2);
  66. m.graphicMode();
  67. m.graphic("101111");
  68. m.graphic("000000");
  69. m.graphic("101111");
  70. m.graphic("000000");
  71. m.graphic("111111");
  72. m.textMode();
  73. m.text(" OU PAR RUBRIQUE ", 13, 3);
  74. m.graphicMode();
  75. m.graphic("111111");
  76. m.graphic("000011");
  77. m.graphic("111111");
  78. m.graphic("000011");
  79. m.graphic("111111");
  80. m.standardVideo();
  81. m.graphicMode();
  82. m.bgColor(BLACK);
  83. m.graphic("110000", 13, 4);
  84. m.repeat(25);
  85. m.textMode();
  86. m.textColor(WHITE);
  87. m.text("NOM:", 9, 5);
  88. dots(13, 5, 25);
  89. m.text("ou ", 9, 6);
  90. dots(13, 6, 25);
  91. m.text("RUBRIQUE:",4, 7);
  92. dots(13, 7, 25);
  93. dots(13, 8, 25);
  94. dots(13, 9, 25);
  95. m.text("LOCALITE:", 4, 10);
  96. dots(13, 10, 25);
  97. dots(13, 11, 25);
  98. m.text("vous pouvez préciser", 13, 12);
  99. m.text("DEPARTEMENT:", 1, 13);
  100. dots(13, 13, 25);
  101. m.text("ADRESSE:", 5, 14);
  102. dots(13, 14, 25);
  103. m.text("PRENOM:", 6, 15);
  104. dots(13, 15, 25);
  105. m.textByte(126, 1, 19);
  106. m.repeat(39);
  107. m.text("ligne suivante ", 9, 20);
  108. m.invertVideo();
  109. m.text(" Suite ", 32, 20);
  110. m.standardVideo();
  111. m.text("ligne précédente ", 9, 21);
  112. m.invertVideo();
  113. m.text(" Retour ", 32, 21);
  114. m.standardVideo();
  115. m.text("effacer ", 9, 22);
  116. m.invertVideo();
  117. m.text(" Correc.", 32, 22);
  118. m.standardVideo();
  119. m.text("choisir dans une liste ", 9, 23);
  120. m.invertVideo();
  121. m.text(" Guide ", 32, 23);
  122. m.standardVideo();
  123. m.text("obtenir la réponse ", 9, 24);
  124. m.invertVideo();
  125. m.text(" Envoi ", 32, 24);
  126. m.standardVideo();
  127. delay(1000);
  128. m.text("G", 13, 5);
  129. delay(1000);
  130. m.text("O");
  131. delay(1000);
  132. m.text("O");
  133. delay(1000);
  134. m.text("G");
  135. delay(1000);
  136. m.text("L");
  137. delay(1000);
  138. m.text("E");
  139. delay(60000);
  140. }
  141. void dots(int x, int y, int w) {
  142. m.text(".", x, y);
  143. m.repeat(w);
  144. }