Last active
January 23, 2024 20:23
-
-
Save tcpj/7fea4ff1c1caf18c024e6cc5cfcc8362 to your computer and use it in GitHub Desktop.
FREKVENS snippet
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
#include <Arduino.h> | |
void setup() { | |
pinMode(PB3, OUTPUT); // clk | |
pinMode(PB4, OUTPUT); // latch | |
pinMode(PB5, OUTPUT); // data | |
for (int i = 0; i <= 255; i++) { | |
digitalWrite(PB5, HIGH); | |
digitalWrite(PB3, HIGH); | |
digitalWrite(PB3, LOW); | |
} | |
digitalWrite(PB4, HIGH); | |
digitalWrite(PB4, LOW); | |
} | |
void loop() { | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment