Patrick Fitzgerald
Published © GPL3+

Program ATtiny with Arduino IDE

ATtiny devboard is just like an Arduino. But tiny. MicroCore package adds the ATtiny13 processor to your Arduino program.

IntermediateProtip2 hours1,429

Things used in this project

Hardware components

artou attiny13 dev board
×1
M5Stack ISP USBasp Programmer (Random Color)
M5Stack ISP USBasp Programmer (Random Color)
×1

Software apps and online services

Arduino IDE
Arduino IDE
microcore lightweight Arduino core for ATtiny13

Story

Read more

Code

tinyDemo.ino

Arduino
Arduino sketch for ATtiny mcu
runs through several blink sequences
pattern of basic blink example using PB3 and PB4
void setup() {  pinMode(PB3,OUTPUT);    pinMode(PB4,OUTPUT);}
void loop()  {  digitalWrite(PB3,HIGH); digitalWrite(PB4,LOW);  delay(500);
                digitalWrite(PB3,HIGH); digitalWrite(PB4,HIGH); delay(500);  
                digitalWrite(PB3,LOW);  digitalWrite(PB4,HIGH); delay(500);
                digitalWrite(PB3,LOW);  digitalWrite(PB4,LOW);  delay(500);  }

Credits

Patrick Fitzgerald

Patrick Fitzgerald

117 projects • 39 followers

Comments