This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| led_displays [2025/03/17 11:34] – wrusman | led_displays [2025/04/16 09:12] (current) – wrusman | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Mocht je hier een idee voor hebben of zelf mee aan de slag willen, de aansturing is erg simpel. | Mocht je hier een idee voor hebben of zelf mee aan de slag willen, de aansturing is erg simpel. | ||
| + | Deze display maakt zoals veel andere displays gebruik van [[schuifregisters]], | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | {{:: | ||
| Line 13: | Line 19: | ||
| // | // | ||
| - | // -8- | + | // |
| - | // 3| |7 | + | // 3| |
| - | // -2- | + | // |
| - | // 4| |6 | + | // 4| |
| - | // -5- | + | // |
| // | // | ||
| // bit 1 = not used | // bit 1 = not used | ||
| Line 41: | Line 47: | ||
| pinMode(clearPin, | pinMode(clearPin, | ||
| digitalWrite(latchPin, | digitalWrite(latchPin, | ||
| - | digitalWrite(clearPin, | + | digitalWrite(clearPin, |
| digitalWrite(OEPin, | digitalWrite(OEPin, | ||
| } | } | ||
| Line 50: | Line 56: | ||
| // shift out the value associated with the x'th value in the array segChar to the third digit the display | // shift out the value associated with the x'th value in the array segChar to the third digit the display | ||
| shiftOut(dataPin, | shiftOut(dataPin, | ||
| - | // shift out the value associated with the x'th value in the array segChar to the display, | + | // shift out the value associated with the 9-x'th value in the array segChar to the display, |
| // pushing the previous character to the second digit | // pushing the previous character to the second digit | ||
| shiftOut(dataPin, | shiftOut(dataPin, | ||
| - | // shift out the value associated with the x' | + | // shift out the value associated with the " |
| // pushing the previous character to the second digit and the first character to the first digit | // pushing the previous character to the second digit and the first character to the first digit | ||
| shiftOut(dataPin, | shiftOut(dataPin, | ||