Learn How to Program the Digispark ATtiny85 USB Development Board for LED Blink

This microcontroller is crazy small, but has only 8 pins ( still enough to do a lot of crazy shit)

I saw this board while watching Mr. Robot S04E10: 410 Gone, and I wanted to try it. Yes, it can be used as a rubber ducky for HID attack testing, but I have no idea how to do it, so let’s start small with trying to blink the onboard LED

We will be using Arduino IDE for this. First, put this in “additional boards manager URLS”

For this, go to file-> Preferences and paste the following

http://digistump.com/package_digistump_index.json

Click ok, and then open Tools ->Board->Boards Manager and search for “digistump AVR Boards” and install it.

Then, from tools->Boards select digispark default

void setup() {
    pinMode(0, OUTPUT);
    pinMode(0, OUTPUT);
}
void loop() {
    digitalWrite(0, HIGH);
    digitalWrite(1, HIGH);
    delay(1000);
    digitalWrite(0, LOW);
    digitalWrite(1, LOW);
    delay(1000);
}

Make sure to unplug the board before clicking on upload. It will ask to plug it in when you click on upload

This will write the blink sketch in the attiny85, and the onboard LED Will start blinking.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *