Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Problem with Pictures with HX8357B

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
aphawk

Bascom Member



Joined: 23 Jan 2010
Posts: 175
Location: Brazil

brazil.gif
PostPosted: Fri Jun 30, 2017 6:00 pm    Post subject: Problem with Pictures with HX8357B Reply with quote

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
View user's profile
aphawk

Bascom Member



Joined: 23 Jan 2010
Posts: 175
Location: Brazil

brazil.gif
PostPosted: Sun Jul 02, 2017 5:49 am    Post subject: Reply with quote

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
View user's profile
Hkipnik

Bascom Member



Joined: 03 May 2010
Posts: 20

PostPosted: Sun Jul 02, 2017 4:03 pm    Post subject: Reply with quote

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
View user's profile
aphawk

Bascom Member



Joined: 23 Jan 2010
Posts: 175
Location: Brazil

brazil.gif
PostPosted: Tue Jul 04, 2017 8:25 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum