Forum Rule: Always post complete source code & details to reproduce any issue!
-
The LCD12864.h library.. anyone got it working on teensy?
Hi!
I am curious if anyone has gotten this display to work on the teensy?
As far as I can understand, I should be able to use the lcd125864.h to communicate with it, and everything goes swell (no compiling errors etc), but the display only powers backlight and nothing comes on screen (so nothing is getting through)..
I am trying to run it on ++2.0 on the following pins:
static const byte RS = 9;
static const byte RW = 8;
static const byte EN = 5;
static const byte D0 = 10;
static const byte D1 = 11;
static const byte D2 = 12;
static const byte D3 = 13;
static const byte D4 = 14;
static const byte D5 = 15;
static const byte D6 = 16;
static const byte D7 = 17;
static const byte CSEL1 = 19;
I just edited these numbers in the .h file from the library (guess that should be allright?).
The main code is this:
#include <LCD12864.h>
#include <LCDSprite.h>
void setup(){
LCDA.Initialise();
delay(500);
}
void loop(){
LCDA.Render();
LCDA.DrawCircle(30,135,5);
LCDA.RenderScreenBuffer(2); // lets draw it in the second screen
LCDA.Draw(false,4,0);
delay(1);
LCDA.setPins(1,0,0,0,1,1,0,0,0,0);
LCDA.setPins(1,0,0,0,1,1,0,0,0,1);
LCDA.setPins(1,0,0,0,1,1,0,0,1,0);
LCDA.Draw(true,4,0);
}
This code is ment for Arduino, but I guess it should work on the teensy as well ?
Anybody see what I am doing wrong?
Sorry for newbee question :P
-Kee
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
-
Forum Rules