Go Down

Topic: Hc595 7 Segment (Read 1 time) previous topic - next topic

lfg2000

I need help to bulid a 4 Digit cascade.

Thank you

Lfg-2000

dhenry

The answer depends on how you wire them up.

lfg2000

Good morning from Europe!

The library is very good. Has anyone example code about a circuit with 4 shift registers?

Thank you for your Help

Lfg-2000



arduinohabib

What is man's best friend? The breadboard!

arduinohabib

You can open a new tab in the IDE and name it sevenseg.h, then go back to the first tab, include the code
Code: [Select]

#include"sevenseg.h"

this is a sample program of printing values on a seven segment display.
Code: [Select]

#include"sevenseg.h"
int val=0;
void setup(){
  sevensegpins(13, 12, 11, 10, 9, 8, 7);
  common_cathode(true);
}
void loop(){
  val=(analogRead(0));
  val=map(val, 0, 1023, 0, 9);
  sevenseg(val);
}
What is man's best friend? The breadboard!

Go Up