Skip to content

Commit

Permalink
Update ST7920_Simulator.h
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtreetech authored and Msq001 committed Nov 8, 2019
1 parent d504394 commit 29763dc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions TFT/src/User/API/UI/ST7920_Simulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
#define ST7920_XSTART (0x80)
#define ST7920_YSTART (0x80)

#define LCD_XROWS 128.0f
#define LCD_YROWS 64.0f

#ifndef ST7920_FULLSCREEN
#define PIXEL_XSIZE (MIN(LCD_WIDTH/128, LCD_HEIGHT/64))
#define PIXEL_YSIZE (PIXEL_XSIZE)
#define LCD_XROWS 128
#define LCD_YROWS 64
#else
#define PIXEL_XSIZE (LCD_WIDTH/LCD_XROWS)
#define PIXEL_YSIZE (PIXEL_XSIZE)
#define LCD_XROWS 128.0f
#define LCD_YROWS 64.0f
#endif

#define PIXEL_XSIZE (MIN(LCD_WIDTH/LCD_XROWS, LCD_HEIGHT/LCD_YROWS))
#define PIXEL_YSIZE (PIXEL_XSIZE)

#define SIMULATOR_XSTART ((LCD_WIDTH - PIXEL_XSIZE*LCD_XROWS) / 2)
#define SIMULATOR_YSTART ((LCD_HEIGHT - PIXEL_YSIZE*LCD_YROWS) / 2)

Expand Down

0 comments on commit 29763dc

Please sign in to comment.