Close

wrong pinout for the ATtiny

A project log for 433MHz canon remote

One of those supposed quick hacks that turns into a complete nightmare...

davedarkodavedarko 07/22/2015 at 23:490 Comments

Here is my little "test program" to check if I'm sane or not. Turns out I am and the pins 2 and 3 are mangled up in the EAGLE library.

void setup() 
{
  pinMode(0, OUTPUT); // MOSI
  pinMode(1, OUTPUT); // MISO
  pinMode(2, OUTPUT); // SCK
  pinMode(3, OUTPUT); // focus
  pinMode(4, OUTPUT); // shutter  
}

void loop() 
{
  for (int i=0; i<5; i++)
  {
    digitalWrite(i, HIGH);
    delay(500);
    digitalWrite(i, LOW);
    delay(500);
  }
}

Now I can reprogram the Attiny45 board again and test it another time...

Discussions