Hack star
Published © GPL3+

Virtual Arduino Simulator - ATTiny85 programming - 2022

ATtiny85 is tiny, useful for a variety of day to day projects! Learn about ATTiny85, and Arduino projects on ATtiny85 using a free simulator

BeginnerFull instructions provided1 hour266
Virtual Arduino Simulator - ATTiny85 programming - 2022

Things used in this project

Story

Read more

Schematics

Connection diagram for three LEDs

Code

ATtiny85 code for blinking three LEDs

Arduino
// ATtiny85 and The Three LEDs
// Wokwi.com demo by Uri Shaked

#define LED_PIN PB0

void setup() {
  pinMode(PB0, OUTPUT);
  pinMode(PB1, OUTPUT);
  pinMode(PB2, OUTPUT);
}

void loop() {
  digitalWrite(PB2, HIGH);
  delay(500);
  digitalWrite(PB2, LOW);
  digitalWrite(PB1, HIGH);
  delay(500);
  digitalWrite(PB1, LOW);
  digitalWrite(PB0, HIGH);
  delay(500);
  digitalWrite(PB0, LOW);
}

Credits

Hack star

Hack star

75 projects • 120 followers
an Arduino enthusiast and an electronic hobbyist

Comments