Skip to content

Instantly share code, notes, and snippets.

@extrasleepy
Created December 5, 2024 18:22
Show Gist options
  • Select an option

  • Save extrasleepy/9652f9ec95cfbc988eea316c40c29887 to your computer and use it in GitHub Desktop.

Select an option

Save extrasleepy/9652f9ec95cfbc988eea316c40c29887 to your computer and use it in GitHub Desktop.
ATtiny_test.ino
// the setup function runs once when you press reset or power the board
void setup() {
pinMode(0, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
delay(100); // wait
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW
delay(100); // wait
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment