Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.98 KB  |  views: 31  |  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. #include "plugin.h"
  2. enum plugin_status plugin_start(const void* parameter)
  3. {
  4. (void)parameter;
  5. int a[2557][106][62];
  6. a[1][1][1]=1;a[1][1][2]=1;a[1][1][3]=1;a[1][1][4]=1;a[1][1][5]=1;a[1][1][6]=1;a[1][1][7]=1;a[1][1][8]=1;a[1][1][9]=1;a[1][41][31]=1;a[1][41][32]=1;a[1][42][29]=1;a[1][42][30]=1;a[1][42][31]=1;a[1][42][32]=1;a[1][43][27]=1;a[1][43][28]=1;a[1][43][29]=1;a[1][43][30]=1;a[1][43][50]=1;
  7.  
  8. int i1;
  9. int i2;
  10. int i3;
  11. i1=0;while(1)
  12. {
  13. i1++;
  14. if (i1==11){break;}
  15.         i2=0;while(1)
  16.         {i2++;
  17.         if(i2==105)break;
  18.                 i3=0;while(1)
  19.                 {
  20.                 i3++;if(i3==61)break;
  21.                 if (a[1][1][1]==1) //works
  22.                 //if (a[1][1][i3]==1)   //doesnt work. just displays a black screen and no pixels.
  23.                 {
  24.                 rb->lcd_drawpixel(20,i3);
  25.                 rb->lcd_update();
  26.                 rb->sleep(40);
  27.                 }
  28.                 }
  29.         }
  30. }
  31. return PLUGIN_OK;
  32. }
  33.  
  34.  
  35.  
  36. ~
clone this paste RAW Paste Data