PDA

View Full Version : Cannot compile ST7565 LCD test program, Teensy 3.0 Beta10 Software, win7



Finally_Joe
01-28-2013, 05:04 PM
Hello Everybody. I am just getting started with working on my project. I am using the Teensy 3.0 and after I got the serial_install and Beta10 softare installed and connected up, the next step was to get the display working. I am trying to use the ST7565 LCD http://www.adafruit.com/products/250 but cannot get the the test program, which comes with the library, running.

I downloaded the Teensy 3.0 Beta10 software from http://forum.pjrc.com/threads/14535-Teensy-3-0-Beta10-Software and am using Windows 7 pro. I have already successfully uploaded a modified blinking LED program to the Teensy 3.0, connecting and uploading to the Teensy 3.0 isn't an issue (for now, at least ha).

First, I downloaded the ST7565 LCD library from adafruit's tutorial page https://github.com/adafruit/ST7565-LCD and extracted the ST7565 library folder (folder name = "ST7565") to the libraries folder of which the main Arduino IDE executable is in one of the parent folders, here is the path: "C:\arduino-1.0.3\libraries\ST7565" and the test program showed up in the File menu (File-> Examples-> ST7564-> st7565lcd ). After clicking the "verify" button in Arduino IDE and I get an error (I will post pic).

Next, I thought maybe I did something wrong when "installing" the library since I did nothing more than extract the files and what I found is that I guess you're supposed to put the library folder in the Arduino folder in "my documents" and so I extracted the ST7565 stuffs to "C:\Users\jscheiman\Documents\Arduino\libraries\ST7 565" opened the test program and got the same error again (see pic below).
198

It seems the problem is something to do with the constructor for the ST7565 LCD object? I looked through the .h and .cpp files and couldn't make too much sense of the contructor functions, I'm not too keen on the stuff with all of those colons and class stuffs, yet. Also, I downloaded the ST7565 library from pjrc.com and did the same things as above with it as well and got the same results. Perhaps Paul or some other genius on the board will be able to point me in the right direction. Maybe I still added the library incorrectly, but sure seems like Arduino IDE found the library.

Oh, and here is the code for the test program. 197 <-- I added ".txt" to the sketch file as it wouldn't allow me to upload the ".pde"
Here are the library files: 200, 201, 199 <-- again, added ".txt" to end of files to allow uploading



Thanks in advance.

-Joe

Finally_Joe
01-28-2013, 09:06 PM
Okay, I just got the test program to compile and run by making some changes to the library code. I deciphered what JBeale meant here: http://forum.pjrc.com/threads/1227-Teensy3-alternative-for-dtostrf()?highlight=st7565 for #1 and #2 in the code note.

There was another error (see pic below) that I don't know how to fix other than commenting out the function call to freeRam()

202

sumotoy
01-31-2013, 11:22 PM
I'm pretty sure that you can comment out that line (and the entire freeRam() routine). It's just a routine not related to LCD functions, just for debugging purposes.