Astrom27 3 Posted July 16, 2011 Share Posted July 16, 2011 HI I got a nokia 5510 from sparkfun that i wanted to play around with but i cant find and libraries for the msp specifically. does anyone have one or do i need to work on one from other libarys? Thanks,Chris Quote Link to post Share on other sites
DanAndDusty 62 Posted July 16, 2011 Share Posted July 16, 2011 HI I got a nokia 5510 from sparkfun that i wanted to play around with but i cant find and libraries for the msp specifically. does anyone have one or do i need to work on one from other libarys? Thanks,Chris I have one of these LCDs though on a different board. I wrote a "library" for it. Put the 2 files in your project directory, Alter the #defines in PCD8544.c to reflect your pins (LCD_SCE etc), in your projects main source file #include "PCD8544.h" in your main() call LCD_init() to setup the lcd, then you can use LCD_gotoXY, LCD_writeString, LCD_writeChar etc. This was my first "non blinky light" code written for the MSP and I haven't gone back to tidy/refactor but it works. It uses bit banging not the hardware SPI so there are many things that could be tidied up/optimised. Im also including a lil proggie that displays Temp/Vcc and ADC readings for Pin 1.3 and displays the results on the LCD. This code is a quick hack to test the library/get to know some of the ADC so don't take the code in it as anything other than a test framework. Hope this helps. Dan Zipped source files :ADC_and_LCD.zip P.S. I added the file as a zip file as the board disallows files with a .h extension SergK, gwdeveloper, Newtonn2 and 9 others 12 Quote Link to post Share on other sites
Astrom27 3 Posted July 17, 2011 Author Share Posted July 17, 2011 cool thanks ill check it out. Quote Link to post Share on other sites
selcukc 15 Posted August 5, 2012 Share Posted August 5, 2012 so good and thanks chibiace 1 Quote Link to post Share on other sites
renasuprema 0 Posted November 24, 2012 Share Posted November 24, 2012 Very useful to me. thank you for sharing. Quote Link to post Share on other sites
Rotundjere 0 Posted March 27, 2013 Share Posted March 27, 2013 I have one of these LCDs though on a different board. I wrote a "library" for it. Put the 2 files in your project directory, Alter the #defines in PCD8544.c to reflect your pins (LCD_SCE etc), in your projects main source file #include "PCD8544.h" in your main() call LCD_init() to setup the lcd, then you can use LCD_gotoXY, LCD_writeString, LCD_writeChar etc. This was my first "non blinky light" code written for the MSP and I haven't gone back to tidy/refactor but it works. It uses bit banging not the hardware SPI so there are many things that could be tidied up/optimised. Im also including a lil proggie that displays Temp/Vcc and ADC readings for Pin 1.3 and displays the results on the LCD. This code is a quick hack to test the library/get to know some of the ADC so don't take the code in it as anything other than a test framework. Hope this helps. Dan Zipped source files :ADC_and_LCD.zip P.S. I added the file as a zip file as the board disallows files with a .h extension man, you're code is very cool ! Quote Link to post Share on other sites
sandy 0 Posted December 17, 2013 Share Posted December 17, 2013 Thanks Bro! This code Worked for Nokia 5110 LCD also. Quote Link to post Share on other sites
FrankT 0 Posted August 22, 2014 Share Posted August 22, 2014 Excellent code. I spent about half a day trying to interface a Nokia 5110 display to a TI MSP-EXP430F5438 board (with Bluetopia BT code) using SPI interface with no success. Before dusting off the O'scope to try to troubleshoot I gave your code a try and it worked the first time! 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.