Rei Vilo 695 Posted May 26, 2012 Share Posted May 26, 2012 Please find an example featuring a thermometer displayed on the Nokia 7110 LCD for Energia. It uses the Nokia 7110 LCD nicely packed on a :arrow: LCD BoosterPack by SugarAddict. The library is based on the :arrow: code by oPossum (Sat Mar 31, 2012 10:29 pm). The internals come from the example AnalogInput_InternalThermometer_430 by Robert Wessels and Rei Vilo. To do bluehash 1 Quote Link to post Share on other sites
bluehash 1,581 Posted May 27, 2012 Share Posted May 27, 2012 Awesome... Do you have a pic? Quote Link to post Share on other sites
Rei Vilo 695 Posted May 28, 2012 Author Share Posted May 28, 2012 With small and big fonts! GeekDoc and bluehash 2 Quote Link to post Share on other sites
Rei Vilo 695 Posted June 10, 2012 Author Share Posted June 10, 2012 I added two examples to Energia: Quote Link to post Share on other sites
canibalimao 2 Posted July 16, 2013 Share Posted July 16, 2013 I'm sorry from being reviving this old thread, but I'm with problems using the examples with energia and I don't want to open a new thread talking about the same. I've put the headder and the source code in the same folder and I still can't compile it with Energia. Isn't this compatible with the newer version? Quote Link to post Share on other sites
Rei Vilo 695 Posted July 16, 2013 Author Share Posted July 16, 2013 I'm sorry from being reviving this old thread, but I'm with problems using the examples with energia and I don't want to open a new thread talking about the same. I've put the headder and the source code in the same folder and I still can't compile it with Energia. Isn't this compatible with the newer version? There's no need to put the header and the source code in the same folder. Just perform the following sequence: It worked fine on my MacBook with the Nokia 7110. Temperature is 32.1 Quote Link to post Share on other sites
canibalimao 2 Posted July 16, 2013 Share Posted July 16, 2013 I'm using a Nokia 5110 LCD, and on my Energia I don't have those Serial Port Options. I only have one "COM1" :-( The error I got at compiling is this one: In file included from LCD_5110.cpp:13:0: /LCD_5110.h:45:23: fatal error: Terminal6.h: No such file or directory compilation terminated. Quote Link to post Share on other sites
Rei Vilo 695 Posted July 16, 2013 Author Share Posted July 16, 2013 You need the Terminal6.h file. Find the whole project attached. It compiles fine on my MacBook. LCD_5110_thermometer.zip canibalimao 1 Quote Link to post Share on other sites
canibalimao 2 Posted July 16, 2013 Share Posted July 16, 2013 I must have deleted those files by accident. I couldn't find the files on the clone from you git I've made before... Thank you very much :grin: EDIT: I put all the files together and the Thermometer_430.h that was missing too and now I get this: LCD_5110_thermometer.cpp.o: In function `setup': C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:62: undefined reference to `Thermometer_430::begin()' LCD_5110_thermometer.cpp.o: In function `loop': C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:84: undefined reference to `Thermometer_430::get()' C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:87: undefined reference to `Thermometer_430::temperatureX10()' LCD_5110_thermometer.cpp.o: In function `__static_initialization_and_destruction_0': C:\Users\Pedro\AppData\Local\Temp\build5736051516123509181.tmp/LCD_5110_thermometer.cpp:48: undefined reference to `Thermometer_430::Thermometer_430()' collect2: ld returned 1 exit status Maybe the problem is related to the serial port? Quote Link to post Share on other sites
Rei Vilo 695 Posted July 16, 2013 Author Share Posted July 16, 2013 Does the main sketch includes: // Include application, user and local libraries #include "LCD_5110.h" #include "Thermometer_430.h" Anyway, please find the project with all the files. LCD_5110_thermometer.zip Dealing with library may seem difficult at first. This tutorial provides a good introduction. Also, all the libraries are listed here. canibalimao 1 Quote Link to post Share on other sites
canibalimao 2 Posted July 17, 2013 Share Posted July 17, 2013 Thank you very much again. I must have changed something accidently, because all the files were in the right place. Another big stupidity done by me, I believe :oops: Quote Link to post Share on other sites
Rei Vilo 695 Posted July 17, 2013 Author Share Posted July 17, 2013 @@canibalimao No, don't think so... just learning the hard way, as everyone does Quote Link to post Share on other sites
meanpc 3 Posted July 23, 2013 Share Posted July 23, 2013 Rei - have you used the Nokia 5110 with Energia and the Adafruit GFX library yet? Should this work? Quote Link to post Share on other sites
Rei Vilo 695 Posted July 23, 2013 Author Share Posted July 23, 2013 Rei - have you used the Nokia 5110 with Energia and the Adafruit GFX library yet? Should this work? I haven't tested the GFX library. My library only displays text. Keep in mind the Nokia 5110 doesn't feature VRAM, so the GFX library uses the SRAM from the MSP430 for graphics. 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.