Did I just brick my Trinket?

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
lwixtrom
 
Posts: 2
Joined: Sat Jun 20, 2015 3:01 pm

Did I just brick my Trinket?

Post by lwixtrom »

I just uploaded a sketch to my 3v trinket that tried to use pin 4 as in input, like the trinket example code but using a different (not-a-good-idea) pin.

int display=0;
void setup() {
display=0;
pinMode(4, INPUT);
digitalWrite(4, HIGH);
}

void loop() {
if (display)
{
//do stuff
display=0
}
if (! digitalRead(4))
display=1;
}

It failed to verify on readback, and now when I reset the thing I don't go into the bootloader. Is it bricked?

User avatar
lwixtrom
 
Posts: 2
Joined: Sat Jun 20, 2015 3:01 pm

Re: Did I just brick my Trinket?

Post by lwixtrom »

I'm going to answer my own post in case someone else does the same boneheaded thing.

1) It is not bricked!
2) The bootloader did get screwed up! But that's okay!

I was able to fix my trinket using the instructions on this page and a Pro Trinket 3v. I did not have to modify the sketch to work on the Pro Trinket instead of an Uno.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Did I just brick my Trinket?

Post by adafruit_support_mike »

Gad to hear you got it working again!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”