Skip to content

Instantly share code, notes, and snippets.

@tcpj
Last active January 23, 2024 20:23
Show Gist options
  • Save tcpj/7fea4ff1c1caf18c024e6cc5cfcc8362 to your computer and use it in GitHub Desktop.
Save tcpj/7fea4ff1c1caf18c024e6cc5cfcc8362 to your computer and use it in GitHub Desktop.
FREKVENS snippet
#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