Jump to content
43oh

(Universal) Color LCD graphics library (2)


Recommended Posts

  • Replies 127
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

This is my new universal graphics library (original one is here.)   Supported boards (this is out of the "box" support, but the library will work with any board after small changes.)   TI's MSP430

This was the case, at least for me. According to the datasheet I have for this display, the RGB/BGR direction is controlled by HW pin, so I made the following changes to the code in graphics.c file.

Here's something you can use for testing (software SPI only.)   ugl16stella.zip

Posted Images

  • 4 months later...
  • 3 weeks later...

Hi @@RobG,

 

I have bought the 2.2 240x340 v3 lcd from tindie few months ago but I still cannot make it work. My intention is to make it work with the C2000 launchpad, so I am also in touch with @@timotet.

 

First I would like to ask if the jumpers are ok for the C2000. My board has JP1,JP2 and JP4 set to "1" and all the others are unsoldered. 

 

Secondly, I have used @@timotet code, for which I am very thankful, and modified it with the ugl16 library (timotets library are compatible with the ILI9225 controller).

 

Despite my efforts I have not managed to make it run. The screen lights up (in white color), but does not respond to any instructions.

If you have any idea I would be glad to hear from you.

 

Thank you in advance for your help.

 

P.S Here is my code:  www.dropbox.com/s/kgdqnvyy9aeqix8/C2000_RGlcd_SPI.zip?dl=0

Link to post
Share on other sites

I have managed to find a solution. I had wrong schematics of the board. I reconfigured the PINS and now works like a charm.

 

I will spend some more time to make my code more readable and I would like to share it in the community of 43oh.

 

Thank you very much for your help.

Link to post
Share on other sites

Hello RobG,

 

I switched to MSP430F5529, there is only 4-5 errors that was regarding clocks settings etc of Gx series of controller so after commenting those lines in "msp.h" 

there's no error left.

but still there is only led On nothing as such.

 

my pin connection are:

P1.7 = MOSI

P1.0 = CS

P1.4 = DC

P1.5 = SCLK

P1.6 = MISO

Vcc, Led = 3.3v

reset = blank

GND= ground

I'm having the same issue.My reset pin is coonected though. Any advice?

 

Nevermind, i didn't see the page 4. The only issue is that it is slow. Thanks

Link to post
Share on other sites

Hello RobG!

 

I want to change the pins on the processor which are connected to the display. 

Is it enough if I change only this ports and pins:

 

#define LCD_SCLK_PIN BIT2
#define LCD_SCLK_PORT P3
#define LCD_MOSI_PIN BIT0
#define LCD_MOSI_PORT P3
#define LCD_MISO_PIN BIT1
#define LCD_MISO_PORT P3
#define LCD_CS_PIN BIT5
#define LCD_CS_PORT P6
#define LCD_DC_PIN BIT6
#define LCD_DC_PORT P6
 
Thank you in advance!
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...