San66 0 Posted February 1, 2016 Share Posted February 1, 2016 Seems is the mistake with color here. After "setColor(COLOR_16_RED);" digit printed be BLUE and vice versa. May be here reversing bit order? Quote Link to post Share on other sites
WilliamCampolina 0 Posted February 17, 2016 Share Posted February 17, 2016 this is happening to me also, if someone has the solution would be happy. I'm using msp430f5529LP setColor(COLOR_16_RED); Quote Link to post Share on other sites
Tieri 6 Posted February 19, 2016 Share Posted February 19, 2016 I had the same "issue" with some chinese displays. Could be the displays them self. Not that big issue to work around though. L Quote Link to post Share on other sites
RobG 1,892 Posted March 1, 2016 Author Share Posted March 1, 2016 I will take a look once I find some time, but this could be caused by different default settings of the display driver (I am setting only few basic things in configuration function.) Should be an easy fix. WilliamCampolina 1 Quote Link to post Share on other sites
ChristopheCloutierTremblay 0 Posted March 8, 2016 Share Posted March 8, 2016 Hi ! Is one of your library compatible with Kentec 3,5 inch using Energia (http://embeddedcomputing.weebly.com/kentec-35-lcd-with-touch-boosterpack-for-stellaris.html) with TM4c123Gh6pm Thanks ! Quote Link to post Share on other sites
tripwire 139 Posted March 8, 2016 Share Posted March 8, 2016 I will take a look once I find some time, but this could be caused by different default settings of the display driver (I am setting only few basic things in configuration function.) Should be an easy fix. Yeah, it looks like RGB vs BGR colour ordering. I guess the displays that do this need some specific setup to pick the right mode. If they don't offer a setting for component order then the red and blue bits would need to be swapped in setColor. Quote Link to post Share on other sites
WilliamCampolina 0 Posted March 23, 2016 Share Posted March 23, 2016 I have a msp430f5529'm using your lib ... however if I for example put while (1) { clearscreen (1); setColor (COLOR_16_WHITE); drawString (5, 0, FONT_MD, "Menu"); } in a while ... I can see it flashing ... is this normal? I thought it would blink so fast I could not see ... if you can help me guide me too ... if I'm making a menu Quote Link to post Share on other sites
baslim 0 Posted July 27, 2016 Share Posted July 27, 2016 Hi Rob, I am trying to test your LCD on a CC3200 and the MSP430FR4133 launchpads - I have changed the pins for each board, however your code does not compile, giving such as "P1SEL is undefinded, P2SEL is undefined" and about 8 other definition errors. I'm not sure if there is a header file that I've misplaced or if the code is just not compatible with my boards. Any help with getting the glass to work on my boards is appreciated! Thanks Quote Link to post Share on other sites
zeke 693 Posted July 27, 2016 Share Posted July 27, 2016 @@baslim You want to try using this other LCD library on the CC3200. Quote Link to post Share on other sites
Tieri 6 Posted November 23, 2016 Share Posted November 23, 2016 Yeah, it looks like RGB vs BGR colour ordering. I guess the displays that do this need some specific setup to pick the right mode. If they don't offer a setting for component order then the red and blue bits would need to be swapped in setColor. 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. void setColor(u_int color) { #if defined SWAP_TO_BRG colorLowByte = (color & 0x07FF) << 11 | (color & 0x07E0) | (color & 0xFFE0) >> 11; colorHighByte = ((color & 0x07FF) << 11 | (color & 0x07E0) | (color & 0xFFE0) >> 11) >> 8; #else colorLowByte = color; colorHighByte = color >> 8; #endif } void setBackgroundColor(u_int color) { #if defined SWAP_TO_BRG colorLowByte = (color & 0x07FF) << 11 | (color & 0x07E0) | (color & 0xFFE0) >> 11; colorHighByte = ((color & 0x07FF) << 11 | (color & 0x07E0) | (color & 0xFFE0) >> 11) >> 8; #else bgColorLowByte = color; bgColorHighByte = color >> 8; #endif } Then I just defined "SWAP_TO_BRG" and the colors work as they should. I know this is old discussion, but decided to post this anyway in hope that it might be helpful to someone. RobG and tripwire 2 Quote Link to post Share on other sites
ulix 2 Posted February 15, 2017 Share Posted February 15, 2017 @@RobG Sorry for bumping this up, but somehow I get the error: Error[e46]: Undefined external "_delay_cycles" referred in main ( C:\Users\ulix\Documents\MSP430\display\Debug\Obj\main.r43 ) Where is the function: _delay_cycles defined and why do I get this error? thanks Quote Link to post Share on other sites
Tieri 6 Posted February 20, 2017 Share Posted February 20, 2017 @@RobG Sorry for bumping this up, but somehow I get the error: Where is the function: _delay_cycles defined and why do I get this error? thanks What IDE are you using? Function _delay_cycles() is part of the msp430 framework (<- I may not be using right word here?) in CCS (Code Composer Studio IDE). Quote Link to post Share on other sites
RobG 1,892 Posted March 1, 2017 Author Share Posted March 1, 2017 _delay_cycles is an intrinsic function provided by CCS Quote Link to post Share on other sites
guycs 1 Posted July 13, 2017 Share Posted July 13, 2017 Is there an Energia library that support ILI9341 running on CC3200 or other simplelink launchpad? I was happy for a minute as I found this post by Rei Vilo but then I discovered that the libraries are no more available for download, also I am not sure if they would run on CC3200 Another related question is: has anyone succeeded to use adafruit GFX libraries for Arduino (I mean with TI simplelink launchpad using Energia)? Or what does it take to port the library? Any help would be appreciated, Thanks Guy Quote Link to post Share on other sites
Rei Vilo 695 Posted July 13, 2017 Share Posted July 13, 2017 Hi! Unfortunately, the LCD_screen Library Suite is no longer maintained. This thread is about the (Universal) Color LCD graphics library, developed by @RobG. The ILI9341 is a pretty standard controller. Have you searched for an Arduino library? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.