Jump to content
Rei Vilo

[Energia Library] Nokia 5110 LCD BoosterPack/Breakout PCB

Recommended Posts

Thanx @@RobG, yes I've been scouring the forums here and wearing out Google, but I'll keep looking.  

Thanx for the response, I'll post back here if I find out how to do it.

Share this post

Link to post
Share on other sites

I've got the Nokia 5110 LCD working with the MSP-EXP430G2 Launchpad using the Energia code by Rei Vilo in the link in his #9 post above. Thanks to Rei for this. (I'll try putting the link here too.)


I've also got the Nokia 5110 working with the TivaC TM4C123GXL Lauchpad using a modification of Rei's code by Clarence Ho (See the series of questions and answers by which Clarence helped me to get the code working on here. (As you can see, I had no idea what I was doing originally - I'd never used C++ before, and not much in C)


I then added a series of graphics commands to this code, some modified from libraries meant for Arduinos, and these work well on the TivaC. See this Youtube video and the notes beneath it for details. The code can be downloaded from here. It includes two variations on a simple Pacman style game using the graphics commands.


I tried to get the graphics commands working on the MSP-EXP430G2 Launchpad, but it runs out of memory even when adding only one or two of those commands. If I remember rightly, adding one call to print a graphic takes the memory use from around 5k to going over the memory limit by 30 bytes! I tried everything to get this 30 bytes down, but there was either plenty of room or over-limit, and nothing in between. (I have a suspicion that Energia reports over memory problems JUST as it goes over memory; i.e. the 30 bytes isn't the real total if ALL the graphics commands had been loaded. Is that true?)


Has anyone posted hints for getting the best from the memory available in the MSP-EXP430G2, i.e. things to avoid that take up a lot of memory?


(Thanks to Rei for his contributions. I hadn't really understood how much of the code was due to Rei when I added comments to the LCD_5110_SPI library, so I may have indicated that functions were written by Clarence Ho which were really by Rei - I'll try to go back to change this.)

Share this post

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.

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...