Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

1.44 "Red Series LCD module 128 * 128 TFT color

 
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
jure_m

Bascom Member



Joined: 14 Jan 2005
Posts: 61
Location: Ljubljana

slovenia.gif
PostPosted: Sat Jan 14, 2017 12:09 pm    Post subject: 1.44 "Red Series LCD module 128 * 128 TFT color Reply with quote

Hi,

this is modified code from this page: http://bascomforum.de/

Details on modifications are described in the SW.

Best regards
Jure
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5060
Location: Holland

blank.gif
PostPosted: Sat Jan 14, 2017 9:24 pm    Post subject: Reply with quote

Thank you for sharing the mods Jure. And of course Hkipnik for his original work on this LCD.
_________________
Mark
Back to top
View user's profile Visit poster's website
gyimezs

Bascom Member



Joined: 23 Mar 2006
Posts: 6

hungary.gif
PostPosted: Thu Aug 31, 2017 6:43 pm    Post subject: Reply with quote

I bought some red board on the ebay:
http://www.ebay.com/itm/1-44-128-128-SPI-TFT-LCD-Module-Replace-Nokia-5110-LCD-51-M52-/301724405979

Jure_m's modified software is not working with this boards, because after reading chip id, it is ILI9163, not ST7735.

ILI9163 and ST7735 are very similar, but ILI9163 need different initialization process.

So, here is the modified initialization code in "ST7735_functions.inc" for ILI9163:
Code:

Sub Lcd_init()

 Lcd_reset = 0
 Waitms 150
 Lcd_reset = 1
 Waitms 150

'Software reset
 Call Lcd_write_command(&H01)
 Waitms 150

'Stand-by off
 Call Lcd_write_command(&H11)
 Waitms 500

'Idle mode off
 Call Lcd_write_command(&H38)

'Display inversion off
 Call Lcd_write_command(&H20)

'Normal display on
 Call Lcd_write_command(&H13)

'Misc. settings
'Interface pixel format
 Call Lcd_write_command(&H3A)
 Call Lcd_write_data(&H55)
'D55h for 16 bit colors
'D53h for 12 bit colors
'D66h for 18 bit colors

'Memory Access Control
 Call Lcd_write_command(&H36)
 Call Lcd_write_data(&HC0)

'Display on
 Call Lcd_write_command(&H29)
 Waitms 100
End Sub
 
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