View previous topic :: View next topic |
Author |
Message |
aphawk
Joined: 23 Jan 2010 Posts: 168 Location: Brazil
|
Posted: Fri Jun 30, 2017 6:00 pm Post subject: Problem with Pictures with HX8357B |
|
|
Hi Mr. Ben Zijlstra,
I'm using the display 3.2 with HX8357B and Arduino Mega2560 and Kipnik code.
All is working fine, except when shows pictures.... the .BIN and .BGC are showed with wrong colors ....
I have tried Landscape or Portrait, with the same problem...
Do you have any suggestion ?
Thanks !
Paulo |
|
Back to top |
|
|
aphawk
Joined: 23 Jan 2010 Posts: 168 Location: Brazil
|
Posted: Sun Jul 02, 2017 5:49 am Post subject: |
|
|
Hi, the code in HX8357_functions.inc must be corrected to the HX8357B shows correct colors.
The corrected code is attached.
Paulo |
|
Back to top |
|
|
Hkipnik
Joined: 03 May 2010 Posts: 20
|
Posted: Sun Jul 02, 2017 4:03 pm Post subject: |
|
|
Hello,
This is not a bug, but your display is now running in the inversion mode.
You sure the colors are right now ?
Or was only the RGR-BGR order not correct, which you can change in the INIT here.
Code: | Call Lcd_select_reg(&H36)
#if Lcd_mode = 1
Lcd_write_byte(&H02)
#elseif Lcd_mode = 2
Lcd_write_byte(&Hc2)
#elseif Lcd_mode = 3
Lcd_write_byte(&H33)
#elseif Lcd_mode = 4
Lcd_write_byte(&Hf3)
#endif
|
|
|
Back to top |
|
|
aphawk
Joined: 23 Jan 2010 Posts: 168 Location: Brazil
|
Posted: Tue Jul 04, 2017 8:25 pm Post subject: |
|
|
Hi, Hkipnik,
Yes, I'm sure that now the colors are right ..... all the pictures are in real colors now, .bin files, including text commands, box, circles, lines, all is fine.
I have read a lot of posts about this display with Arduino IDE, many peoples say they have the same problem.
I researched a lot without any solution, then I read your initialization code with the chipset docs in hands, and see that this display can work in inverse mode, and suspect that this inversion can silvery problem, and it works.
I bought 10 pieces of the same display, and all the 10 have the same problem. But with the inversion command the display are working correct now.
May be some chipset problem ?
Thanks for your attention and your driver's code !
Paulo |
|
Back to top |
|
|
|