Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow orientation to be externally controlled for the ST7789V #19044

Merged
merged 1 commit into from
Aug 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Marlin/src/lcd/tft/st7789v.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
#define ST7789V_ORIENTATION_DOWN 0 // 240x320 ; Cable on the lower side

//#define ST7789V_COLOR_BGR
#define ST7789V_ORIENTATION ST7789V_ORIENTATION_LEFT
#ifndef ST7789V_ORIENTATION
#define ST7789V_ORIENTATION ST7789V_ORIENTATION_LEFT
#endif
#define ST7789V_MADCTL_DATA (ST7789V_ORIENTATION | TERN(ST7789V_COLOR_BGR, ST7789V_MADCTL_BGR, ST7789V_MADCTL_RGB))

#define ST7789V_NOP 0x00 // No Operation
Expand Down