Skip to content

Instantly share code, notes, and snippets.

@vschlegel
Last active August 30, 2020 08:55
Show Gist options
  • Save vschlegel/641d8672bc8d1e32bfe368ab7865dca3 to your computer and use it in GitHub Desktop.
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
//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);
}
@roboter-basteln
Copy link

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