Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
- Moved LCD_ROTATE_180 to features.h
Browse files Browse the repository at this point in the history
  • Loading branch information
teeminus committed Mar 2, 2021
1 parent edf8e77 commit 74e8d94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/User/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
//#define LCD_IDLE_OFF
#if defined(LCD_IDLE_OFF)
#define LCD_IDLE_TIMEOUT_SEC 5
#endif
#endif

// Rotate screen by 180°
//#define LCD_ROTATE_180
3 changes: 1 addition & 2 deletions src/User/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
#define ST7920_GXSTART ((LCD_WIDTH - ST7920_DOTSIZE * ST7920_GXROWS) / 2)
#define ST7920_GYSTART ((LCD_HEIGHT - ST7920_DOTSIZE * ST7920_GYROWS) / 2)

//#define ROTATE_180
#if defined(ROTATE_180)
#if defined(LCD_ROTATE_180)
#define FILLRECT(X,Y,W,H,C) \
{ \
uint16_t x0 = LCD_WIDTH - (X) - (W) - 1; \
Expand Down

0 comments on commit 74e8d94

Please sign in to comment.