Rhab 1 Posted September 2, 2015 Share Posted September 2, 2015 II'm not sure about pin 24. I'm going to remove R10, i'll tell you if it works or not. Quote Link to post Share on other sites
Rhab 1 Posted September 2, 2015 Share Posted September 2, 2015 Thank you very very much. Now my Display works as it should work. Quote Link to post Share on other sites
Rei Vilo 695 Posted September 2, 2015 Author Share Posted September 2, 2015 Lesson: read the data-sheets! Quote Link to post Share on other sites
Rhab 1 Posted September 2, 2015 Share Posted September 2, 2015 you're right... and not only the ti-datasheet, but also the manufacturer-datasheet too... Quote Link to post Share on other sites
Rhab 1 Posted September 4, 2015 Share Posted September 4, 2015 hi, now i got a new problem. what i want to do is switching between different "screens", which all show different measurement-data (as changing string). If i use only one "screen", there is no problem. But in the moment i draw a button (which should be used to switch "screen") the changing values can't be displayed correct (the value is only white pixel-bulk) here you can see the value 2x (second character is changing in this moment) without button here you can't see any value with button... here is my code(the functionality of the button is not implemented yet, but this shouldn't be a problem...): #include "Energia.h" #include "SPI.h" #include <LCD_graphics.h> #include "LCD_GUI.h" #define K35_SPI; #include "Screen_K35_SPI.h" Screen_K35_SPI myScreen; // Define variables and constants uint16_t value=0; boolean increase=true; uint16_t option=1; // option 1 => Screen 1 // option 2 => Screen 2 // option 3 => ... //Define Buttons button bRight; //button bLeft; void setup() { Serial.begin(9600); Serial.println("begin... "); myScreen.begin(); myScreen.setOrientation(1); myScreen.clear(); //myScreen.dRectangle(myScreen.screenSizeX()-30, 0, 30, myScreen.screenSizeY(), myColours.red); bRight.dStringDefine(&myScreen, myScreen.screenSizeX()-30, 0, 20, 40, ">", myColours.white, myColours.red); bRight.enable(true); bRight.draw(false); } void loop() { switch(option){ case 1: if(value==100){ increase=false; } if(value==0){ increase=true; } myScreen.setFontSize(myScreen.fontMax()); myScreen.gText((myScreen.screenSizeX()-10*myScreen.fontSizeX())/2, (myScreen.screenSizeY()-myScreen.fontSizeY())/2, " ", myColours.black); if(value<10){ myScreen.gText((myScreen.screenSizeX()-10*myScreen.fontSizeX())/2, (myScreen.screenSizeY()-myScreen.fontSizeY())/2, " " + String(value, DEC) , myColours.white); } else if(value<99){ myScreen.gText((myScreen.screenSizeX()-10*myScreen.fontSizeX())/2, (myScreen.screenSizeY()-myScreen.fontSizeY())/2, " " + String(value, DEC) , myColours.white); } else{ myScreen.gText((myScreen.screenSizeX()-10*myScreen.fontSizeX())/2, (myScreen.screenSizeY()-myScreen.fontSizeY())/2, String(value, DEC) , myColours.white); } myScreen.gText((myScreen.screenSizeX()-2*myScreen.fontSizeX())/2, (myScreen.screenSizeY()-myScreen.fontSizeY())/2, "km/h" , myColours.white); if(increase){ value++; } else{ value--; } break; case 2: myScreen.gText((myScreen.screenSizeX()-10*myScreen.fontSizeX())/2, (myScreen.screenSizeY()-myScreen.fontSizeY())/2, "Screen 2!" , myColours.white); break; } } Quote Link to post Share on other sites
Rhab 1 Posted September 4, 2015 Share Posted September 4, 2015 solved my Problem... i forgot myScreen.setFontSolid(true); now it works Quote Link to post Share on other sites
Rei Vilo 695 Posted September 6, 2015 Author Share Posted September 6, 2015 There's no secret, Read the manual! Quote Link to post Share on other sites
evandrorech 1 Posted September 7, 2015 Share Posted September 7, 2015 Hi! I'm testing a EducationalBP MKII (board revision 1.1) which I adquired with the MSP432 launchpad. When running the MSP432 binary examples build in Code Composer, the display and all other things works. When I go to Energia and run a example, the compiler returns error 2 in the EduBPMKII_Screen libraries, saying the board isn't compatible... When I tried to test the Energia examples using my Tiva C launchpad, all worked, except that use the screen. All examples compiles, the RGB led, joystick and buzzer works, but the screen stay blank... Running the LCD_protocol100 example, it returns in serial monitor data about the display, but it still blank. I tested the examples in Energia 12, 14 and 16. That can be a problem in the libraries or in my boosterpack? There are some other tests can I do to solve the problem? Thanks in advance! Quote Link to post Share on other sites
Rei Vilo 695 Posted September 7, 2015 Author Share Posted September 7, 2015 The library was developed some time ago, when the MSP432 wasn't available. The sketches check the MCU, and the __MSP432P401R__ isn't listed. #if defined(__MSP430F5529__) #define ROWS 32 // max 80 #define COLS 32 // max 60 #elif defined(__LM4F120H5QR__) #define ROWS 64 // max 80 #define COLS 64 // max 60 #else #error Board not supported #endif For the LM4F120 / TM4C123, same answers as said previously. R9 and R10 shunts pin 23 to 14 and 24 to 15. Quote Link to post Share on other sites
evandrorech 1 Posted September 7, 2015 Share Posted September 7, 2015 Thanks @@Rei Vilo ! I removed both resistors and the LCD worked! ahmetkut 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted January 23, 2016 Author Share Posted January 23, 2016 You can use this excellent (Universal) Color LCD graphics library (2). Quote Link to post Share on other sites
RndMnkIII1426459969 0 Posted April 12, 2016 Share Posted April 12, 2016 my kentec display is gathering dust . No alternatives for Kentec Screen_K35? Quote Link to post Share on other sites
Rei Vilo 695 Posted April 12, 2016 Author Share Posted April 12, 2016 The library for the Kentec 3.5" SPI has been added to Energia, with the game of life as example. See Energia/hardware/lm4f/Kentec_35_SPI. spirilis 1 Quote Link to post Share on other sites
Widgetman 0 Posted May 14, 2016 Share Posted May 14, 2016 Hi All, I am currently trying to get a Kentec K35 Display working on the MSP432 Launchpad. Is there an example Library available to get the basics running, and does R9 need to be removed? It was shipped to me with R10 removed and R9 in place. Any thoughts or help would be greatly appreciated. Thanks Tom Quote Link to post Share on other sites
Rei Vilo 695 Posted June 23, 2016 Author Share Posted June 23, 2016 There is no R9 on the MSP432 LaunchPad. The link posted before should work with minor adaptations. 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.