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

Untitled

By: a guest on Apr 29th, 2010  |  syntax: None  |  size: 0.43 KB  |  views: 147  |  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_mono(const unsigned char *data, int x, int by, int width,
  2.                    int bheight, int stride)
  3. {
  4.     if (lcd_initialized)
  5.     {
  6.         while (bheight--)
  7.         {
  8.             lcd_write_command(LCD_SET_PAGE | (by & 0xf));
  9.             lcd_write_command_e(LCD_SET_COLUMN | ((x >> 4) & 0xf), x & 0xf);
  10.  
  11.             lcd_mono_data(data, width);
  12.             data += stride;
  13.             by++;
  14.         }
  15.     }
  16. }
clone this paste RAW Paste Data