-
-
Save vschlegel/641d8672bc8d1e32bfe368ab7865dca3 to your computer and use it in GitHub Desktop.
For controling the TW-1264 LED Display, available on HAM RADIO 2016, using an Arduino Nano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CC BY NC SA 2016 github.com/ioeides | |
int latchPin = 8; | |
int clockPin = 12; | |
int dataPin = 11; | |
int numbers[10] = {0, 48, 91, 121, 116, 109, 111, 56, 127, 125}; | |
/* | |
* ###8### | |
* # # | |
* 4 16 | |
* # # | |
* ###64## | |
* # # | |
* 2 32 | |
* # # | |
* ###1### | |
*/ | |
void setup() { | |
pinMode(latchPin, OUTPUT); //alias RCK | |
pinMode(clockPin, OUTPUT); //alias SRCK | |
pinMode(dataPin, OUTPUT); //alias SerIn | |
} | |
void loop() { | |
digitalWrite(latchPin, LOW); | |
shiftOut(dataPin, clockPin, MSBFIRST, numbers[1]); //Prints a one | |
digitalWrite(latchPin, HIGH); | |
} |
Sorry, i lost the pinout too. I used a Multimeter in continuity mode and the schematics of the driver ics to check which pins are which.
Maybe i have a copy of the pinout in my hackerspace. I will check on tuesday.
I'm doing the analysis on https://github.com/roboter-basteln/arduino/tree/master/tw-1264 (in German language)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you have a datasheet for the LED module which explains what the pins are, what voltage to use etc.?