This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 29th, 2014  |  syntax: C  |  size: 2.71 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. byte message[210]={0b00000010,0b10101000,0b00000000,0b01010000,0b01010000,0b00010010,0b00100010,0b00100101,0b10010101,0b01010101,0b01010010,0b01000000,0b00000000,0b00000000,0b00000000,0b00000001,0b10000000,0b00000000,0b00001101,0b00000000,0b00000000,0b00011010,0b00000000,0b00000000,0b01010100,0b00000000,0b00000000,0b11111000,0b00000000,0b00000000,0b00000000,0b00000110,0b00011100,0b01100001,0b10001000,0b00000000,0b00110010,0b00011010,0b00110001,0b10000110,0b10111110,0b11111011,0b11101111,0b10000000,0b00000000,0b00000000,0b00010000,0b00000000,0b00000100,0b00000000,0b00000000,0b00000000,0b00100000,0b00000000,0b00001111,0b11000000,0b00000001,0b11110000,0b00000000,0b00000000,0b00011000,0b01100001,0b11000110,0b00100000,0b00100000,0b00001000,0b01101000,0b01100011,0b10011010,0b11111011,0b11101111,0b10111110,0b00000000,0b00000000,0b00000000,0b01000000,0b11000000,0b00010000,0b00000001,0b10000000,0b00000000,0b10000011,0b00000000,0b00111111,0b00000110,0b00000111,0b11000000,0b00001100,0b00000000,0b00010000,0b00001000,0b00000100,0b00010000,0b00110000,0b00010000,0b00011000,0b01100000,0b01000000,0b00001100,0b01000011,0b00000000,0b00000001,0b10011000,0b00000000,0b00110001,0b00001100,0b00000001,0b10000110,0b00000100,0b00000100,0b00001000,0b00000100,0b00010000,0b00011000,0b00000100,0b01000000,0b00110000,0b00001000,0b10000000,0b00100000,0b00100000,0b10000000,0b10000000,0b10000000,0b10000000,0b00000110,0b00000000,0b11000000,0b00110000,0b00000100,0b01110101,0b10000000,0b00001000,0b00001000,0b00000000,0b00010000,0b01111100,0b00000000,0b00100001,0b01110100,0b10110110,0b00000100,0b11100100,0b11111110,0b11100001,0b11000001,0b10111000,0b00000010,0b10000011,0b10110010,0b00000101,0b00000111,0b11100100,0b00001010,0b00001100,0b00001000,0b00110110,0b00000000,0b00000000,0b00000000,0b00000000,0b00111000,0b00100000,0b00000000,0b01110101,0b00010101,0b01010100,0b11100000,0b00001010,0b10100000,0b00000000,0b00010100,0b00000000,0b00001111,0b10000000,0b00000000,0b01111111,0b11000000,0b00000011,0b10000000,0b11100000,0b00001100,0b00000000,0b01100000,0b00110100,0b00000001,0b01100000,0b11001100,0b00000110,0b01100001,0b00010100,0b00010100,0b01000010,0b00100100,0b01001000,0b10000000,0b01000101,0b00010000,0b00000000,0b10000100,0b00100000,0b00000001,0b00000000,0b01000000,0b00000000,0b10010100,0b00000000,0b01111001,0b11110100,0b11110001};
  2.  
  3. void setup() {
  4.   pinMode(13, OUTPUT);    
  5. }
  6.  
  7. void loop() {
  8.  
  9.   digitalWrite(13, 1);
  10.   delay(3000);
  11.   digitalWrite(13, 0);
  12.  
  13.   for(int i = 0; i < 1679; i++)
  14.   {
  15.     if( (message[i/8]&(1<<(7-(i%8)))) == 1)
  16.     {
  17.       digitalWrite(13, 1);
  18.       delay(250);
  19.       digitalWrite(13, 0);
  20.       delay(50);
  21.     }else
  22.     {
  23.       digitalWrite(13, 1);
  24.       delay(50);    
  25.       digitalWrite(13, 0);
  26.       delay(50);
  27.     }
  28.   }
  29. }
clone this paste RAW Paste Data