Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Flip screen upside down #30

Open
macasero opened this issue Jun 6, 2019 · 6 comments
Open

Flip screen upside down #30

macasero opened this issue Jun 6, 2019 · 6 comments

Comments

@macasero
Copy link

macasero commented Jun 6, 2019

Is it possible to flip the screen upside down, so we have the SD on left position other than right position?

@mpallen509
Copy link

Also interested in flipping the GUI. Have not been able to identify any built in rotation commands.

@SlyKittyCat
Copy link

been waiting for this my screen is collecting dust on my desk also baby stepping z offset would be nice

@mpallen509
Copy link

Should be capable of baby stepping as there is a menu item for it during printing. Settings are found in config_adv. Make sure to enable them on the printers board first, then the screen should stop displaying unknown command errors.

@ArturNadolski
Copy link

ArturNadolski commented Jun 20, 2019

void set_display_direction(u8 direction)
{
	if(direction) {
    LCD_WR_REG(0x36); 
    LCD_WR_DATA(0xE8);
    Delay_ms(120); 
	} else {
    LCD_WR_REG(0x36); 
    LCD_WR_DATA(0x48);
    Delay_ms(120);     
	}
}

0-landscape, 1-portrait etc
Take a look at driver manual: https://www.elecrow.com/download/ILI9488%20Data%20Sheet_100.pdf
chapter 5.2.30. Memory Access Control (36h) and MX MY MV

@mpallen509
Copy link

@ArturNadolski Thanks for the function, although being a noob at C&C++ I am still lost on how to implement this.

If you would be so kind, where would I insert the function (GUI.c, ui_draw.c, etc...) and should I be assigning a hex value to 'direction?' (0x01, 0x02, etc...)

  • Any help is appreciated thanks for the tip already.

@ArturNadolski
Copy link

ArturNadolski commented Jun 20, 2019

Flipping the screen is quite simple but flipping touch screen (menu) needs more coding.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants