-
Notifications
You must be signed in to change notification settings - Fork 427
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
How make rotation screen (Set portrait orientation) Driver ILI9488 #82
Comments
I made corrections to the void ili9488_init (void) function in the ili9488.с file, {ILI9488_CMD_MEMORY_ACCESS_CONTROL, {(0x20 | 0x08)}, 1} I think you can add this option to menuconfig |
Hi @Djaison, Can you try swapping the values on this config? If that doesn't work i can add an option to the menuconfig as you've suggested. Offtopic: Your interface looks really cool :) |
Ok, I will try to add an option to set the display on portrait mode from the menuconfig, but it will be later today. |
It would be good to add this option for the ILI9341, too. I just worked on this today and found that for the M5Stack Fire in the file
Value taken from ILI9341 datasheet, section 8.2.29. Memory Access Control (36h). Also height and width must be swapped, too. I did it like this in file
|
Sure, I will add it later today, I'm at work right now. |
It looks really nice :)
We can add a note for that on the README, I don't know if it can be done automagically based on the display orientation. |
it can be added to menuсonfig as a function of the orientation of the display, and later I will be able to provide it after checking |
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
ESP-IDF version
last master
Development kit used
ESP-WROOM32
Development machine OS
Windows 10
Hello! How can I rotate the screen? I need to set portrait orientation.
I use display with driver ILI9488.
As I understand it, I need to change the starting coordinates of the rendering in the file ili9488.c :
`/* Column addresses */
uint8_t xb[] = {
(uint8_t) (area->x1 >> 8) & 0xFF,
(uint8_t) (area->x1) & 0xFF,
(uint8_t) (area->x2 >> 8) & 0xFF,
(uint8_t) (area->x2) & 0xFF,
};
The text was updated successfully, but these errors were encountered: