Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Cannot compile ST7565 LCD test program, Teensy 3.0 Beta10 Software, win7

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    12

    Cannot compile ST7565 LCD test program, Teensy 3.0 Beta10 Software, win7

    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-...eta10-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\ST 7565" opened the test program and got the same error again (see pic below).
    Click image for larger version. 

Name:	ST7565_teensy3_beta10_error_better_pic.jpg 
Views:	627 
Size:	121.0 KB 
ID:	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. st7565lcd.pde.txt <-- I added ".txt" to the sketch file as it wouldn't allow me to upload the ".pde"
    Here are the library files: ST7565.cpp.txt, ST7565.h.txt, glcdfont.c.txt <-- again, added ".txt" to end of files to allow uploading



    Thanks in advance.

    -Joe
    Last edited by Finally_Joe; 01-29-2013 at 02:52 PM.

  2. #2
    Junior Member
    Join Date
    Jan 2013
    Posts
    12
    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-T...ghlight=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()

    Click image for larger version. 

Name:	t3_freeRam_error.PNG 
Views:	335 
Size:	91.3 KB 
ID:	202

  3. #3
    Senior Member sumotoy's Avatar
    Join Date
    Nov 2012
    Location
    Venezia, Italia
    Posts
    421
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •