supercrab / arduino-seven-segment

Arduino Library for 7 Segment LCD/LED Displays
20 stars 7 forks source link

Cascade Problem #4

Closed silencium2k closed 5 years ago

silencium2k commented 5 years ago

Hello Supercrab Thank you for making this awesome library. I am in the Process of building a fancy retro LCD speedometer. It all works so far with a 3 digit LCD. But when I try to cascade two AY0438 to be able to run 6 digits I can only get the first 3 digits running correct. On digit 4, 5 and 6 the segments are disordered. I think it might has something to do with the screen definition, because even when I want to get 3 digits running, I need to define "8.8|8" what is somehow strange, even with a 8.8.8 LCD it needs to be like that, otherwise the segments are disordered. With the "88:88:88" definition it does only show the first digit correct. I am sure that I have connected all the wires correct and I also looped the DATA IN on the second AY0438 through DATA OUT of the first one, like it's described in the Datasheet.

Have you ever had it running cascaded? Kind regards Silas

PS: I run it on an Arduino Nano Here is the code how I can only get the first 3 digits running correct:

`

include

define CLOCK 5 // Arudino digital 5 -> AY0438 clock

define DATA 6 // Arudino digital 6 -> AY0438 data

define LOAD 7 // Arudino digital 7 -> AY0438 load

SevenSegment screen(CLOCK, DATA, LOAD);

static char LCDout[6]; float LCDfloat;

void setup(void) { Serial.begin(9600); screen.begin("AY0438","8.8|8888"); // Set display driver AY0438 and screen definition

} void loop(void) { delay(1000);

LCDfloat = 123456;

dtostrf(LCDfloat, 6, 0, LCDout);

// Print on LCD screen.print(LCDout); } `

supercrab commented 5 years ago

Try ""8.8.888|88"

silencium2k commented 5 years ago

haha, sorry man. I hate trolls, and as a matter of fact I though you troll me when you started to come up with the wrong wiring xD

silencium2k commented 5 years ago

Try ""8.8.888|88"

Yes that's what I wanted to try :)

silencium2k commented 5 years ago

I would have to put "setCascaded(true)" in the "Setup" section I guess?

supercrab commented 5 years ago

"8.8.888|88" or "88|888.8.8"