aboutsummaryrefslogtreecommitdiff
path: root/64test
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-11-26 22:24:14 +0100
committerlonkaars <loek@pipeframe.xyz>2021-11-26 22:24:14 +0100
commit61f4cce79a89af13e0d93c7166f8d2ee6202bd40 (patch)
treed245d1d1541e0c9a924eba80dc905a2b665664eb /64test
parent8e61621a34839404e981cdbc3a9f3c54a9f43be9 (diff)
whoopsie in readme and moved shit into tests/ folder
Diffstat (limited to '64test')
-rw-r--r--64test/64test.ino32
1 files changed, 0 insertions, 32 deletions
diff --git a/64test/64test.ino b/64test/64test.ino
deleted file mode 100644
index ed0db9b..0000000
--- a/64test/64test.ino
+++ /dev/null
@@ -1,32 +0,0 @@
-#define SERIAL_DELAY 3
-
-#define SERIAL_CLK 4
-#define SERIAL_INP 2
-#define LATCH_CLK 3
-
-void shift(unsigned char gert, unsigned char gert2) {
- digitalWrite(LATCH_CLK, LOW);
- shiftOut(SERIAL_INP, SERIAL_CLK, LSBFIRST, gert);
- shiftOut(SERIAL_INP, SERIAL_CLK, LSBFIRST, gert2);
- digitalWrite(LATCH_CLK, HIGH);
-}
-
-void setup() {
- pinMode(SERIAL_CLK, OUTPUT);
- pinMode(SERIAL_INP, OUTPUT);
- pinMode(LATCH_CLK, OUTPUT);
-
- shift(0, 0);
-}
-
-unsigned int i = 0;
-
-void loop() {
- i = ( i + 1 ) % 64;
- unsigned char sr1 = 0x00 ^ (1 << (i / 8));
- unsigned char sr2 = 0xff ^ (1 << (i % 8));
-
- shift(sr1, sr2);
-
- delay(10);
-}