Guest User

Untitled

a guest
Aug 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. /*
  2.     x+w-1 <= 239
  3.     y+h-1 <= 319
  4. */
  5. void lcd_window(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
  6. {
  7.     LCD_WriteReg(0x44, ((x+w-1) << 8) | x);
  8.     LCD_WriteReg(0x45, y);
  9.     LCD_WriteReg(0x46, y+h-1);
  10. }
Add Comment
Please, Sign In to add comment