RobG 1,892 Posted November 23, 2013 Author Share Posted November 23, 2013 If you suspect SPI, lower the clock speed to 1MHz and see if that works. Quote Link to post Share on other sites
olajideolaolorun 0 Posted November 23, 2013 Share Posted November 23, 2013 Do you have an example to read from the SD card? Just a way to show how to initialize it? Something like this: https://github.com/adafruit/Adafruit_ILI9340/blob/master/examples/spitftbitmap/spitftbitmap.ino for another controller and lcd tho. Quote Link to post Share on other sites
RobG 1,892 Posted November 23, 2013 Author Share Posted November 23, 2013 I don't, but search this forum for "sd card," you will find few libraries. Quote Link to post Share on other sites
Register 3 Posted January 19, 2014 Share Posted January 19, 2014 Hi, I just bought one o your LCD shield I'm using Energia, is your library easy to use with it, or does it require CSS? Regards Quote Link to post Share on other sites
nemetila 12 Posted January 23, 2014 Share Posted January 23, 2014 I have ported a readRegister() function from ENERGIA. At 16MHz SPI clock it gives incorrent results, altough RobG's wrinting functions work corretly at this speed (LCD displays as it should). At 8MHz reading works correcty too. unsigned char readRegister(unsigned char Addr, unsigned char xParameter) { //ENERGIA //INT8U data=0; //sendCMD(0xd9); // ext command //WRITE_DATA(0x10+xParameter); // 0x11 is the first Parameter //TFT_DC_LOW; //TFT_CS_LOW; //SPI.transfer(Addr); //TFT_DC_HIGH; //data = SPI.transfer(0); //TFT_CS_HIGH; //return data; unsigned char data = 0; writeCommand(0xd9); writeData(0x10+xParameter); LCD_DC_LO; LCD_SELECT; UCB0TXBUF = Addr; while (UCB0STAT & UCBUSY); LCD_DC_HI; UCB0TXBUF = 0; while (UCBxSTAT & UCBUSY); data = UCB0RXBUF; LCD_DESELECT; return data; } Reading ILI9341's register 0xD3 ("Read ID4") must be the value of "0x09341" for( i=0; i<3; i++ ) { rx_data[i]=readRegister(0xd3,i+1); } Quote Link to post Share on other sites
Tieri 6 Posted February 12, 2014 Share Posted February 12, 2014 Hi RobG. I wonder if you can help me. I have bought 2.2" TFT + touchscreen with ILI9225B. The ebay seller did not have any data sheet for it. With google I found some old thread in EEVBlog forum by some one called Tinkeringsteve. Futher investication in to the thread, revealed couple post by some one called RobG. Hmm... In one of his posts (reply #13) I found couple of pictures from his LCD screens and the one in the right side looks exactly as mine. Also Tinkeringsteves ebay links look exactly the same LCD as I appear to have. So do you have any information about the screen? Datasheet? How do I connect it to the lauchpad to be used with your LCD library? Pinout? All and any information is verry mutch appriciated. Thank you. I attached couple images of the LCD if it is any help. Quote Link to post Share on other sites
RobG 1,892 Posted February 12, 2014 Author Share Posted February 12, 2014 @@Tieri, you can use my ugl8 library (see first post) with your LCD, it's the same one I used in my v1 BP. I have some PCBs left if you want. Quote Link to post Share on other sites
Tieri 6 Posted February 13, 2014 Share Posted February 13, 2014 @@Tieri, you can use my ugl8 library (see first post) with your LCD, it's the same one I used in my v1 BP. I have some PCBs left if you want. Thank you for your swift responce. Found the schematics for your PCB in the thread. They helped a lot. I have now the confidence to hook up my display and try it out. The thing that was confusing me most was the SOMI line. But It seems I can leave it unconnected, as the display has no SOMI line. The pinout I had was refering the MOSI/SOMI line was combined. No need for the PCB as this baby is goin straight to a project as I get the hang of it and your library. Thanks again for your great work! Quote Link to post Share on other sites
Druzyek 36 Posted March 9, 2014 Share Posted March 9, 2014 Hi RobG, your library looks really neat! I would like to try to it out. Finding an LCD locally would be a lot easier than having one shipped. Do you happen to know any phone models the 320x240 screens are used in? Can you tell me what is written on the back of the LCD? Thanks! Looking forward to trying it. Quote Link to post Share on other sites
RobG 1,892 Posted March 28, 2014 Author Share Posted March 28, 2014 Updated my ugl16 library with few new functions: u_int color = getPixel(x, y); //returns color of the pixel at x and y getPixels(xStart, yStart, xEnd, yEnd, data); //returns color of the pixels from the defined area To read registers: readDataBegin(command); u_char data = readData(); // repeat readData() if necessary readDataEnd(); To read id: u_int id = readID(); Quote Link to post Share on other sites
pr1v1t 0 Posted April 5, 2014 Share Posted April 5, 2014 Hey Rob, I was just curious as to how difficult it would be to port this (or ugl 8) to be compatible with an SSD1289 display. The libraries I am currently using are not nearly as well commented (and are therefore much more difficult to code for). Quote Link to post Share on other sites
RobG 1,892 Posted April 5, 2014 Author Share Posted April 5, 2014 It shouldn't be that hard, but which display specifically @@pr1v1t? Quote Link to post Share on other sites
pr1v1t 0 Posted April 5, 2014 Share Posted April 5, 2014 I'm using the YX32B 3.2" TFT module (China stuff). Quote Link to post Share on other sites
pr1v1t 0 Posted April 5, 2014 Share Posted April 5, 2014 Nevermind. It would seem that porting is unnecessary. Although the datasheet for the item I purchased lists the LCD controller as an SSD1289.... a device teardown CLEARLY shows that it is using an ILI9341. Gotta love China stuff. The better question would be what exactly needs to be changed between a ILI9341 and an ILI9340? Quote Link to post Share on other sites
RobG 1,892 Posted April 5, 2014 Author Share Posted April 5, 2014 @@pr1v1t, my driver works with ILI9341 as is and I believe no changes are necessary for ILI9340. 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.