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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.