Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 29th, 2010  |  syntax: None  |  size: 0.55 KB  |  views: 150  |  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. void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases,
  2.                          int x, int by, int width, int bheight, int stride)
  3. {
  4.     if (lcd_initialized)
  5.     {
  6.         stride <<= 3; /* 8 pixels per block */
  7.         while (bheight--)
  8.         {
  9.             lcd_write_command(LCD_SET_PAGE | (by & 0xf));
  10.             lcd_write_command_e(LCD_SET_COLUMN | ((x >> 4) & 0xf), x & 0xf);
  11.  
  12.             lcd_grey_data(values, phases, width);
  13.             values += stride;
  14.             phases += stride;
  15.             by++;
  16.         }
  17.     }
  18. }
clone this paste RAW Paste Data