ATtiny 85 to trigger Canon camera using IR LEDs and laser tripwire

Okay some updates:

I Found a good post on a blog from a guy who made his own camera remote:

and I managed to get his code up and running on the ATtiny85 AND it triggers the camera! SO I now know it's possible...

I was able to create a small loop that just fired the camera every second:

#define F_CPU 7900000 // clock frequency, set according to clock used!

#include <inttypes.h>
#include <stdlib.h>
#include <avr/io.h>
#include <avr/sleep.h>
#include <util/delay.h>
#include <avr/interrupt.h>

#define HPERIOD 0.01524  //delay between pulses
#define RATIO 0.4       // --?
#define NPULSES 16 //number of pulses

#define LEDOFF 0b00000001
#define LEDON  0b00000010


int main(void)
{
  uint8_t i;
  DDRB  = 0b00000010; // pin PB0 is input, pins PB1-PB4 are output
  PORTB = 0b00000001; // pull-up for input pin PB0
  while(1){
    for(i=0;i<NPULSES;i++)
    {
      PORTB = LEDON;
      _delay_ms(HPERIOD);
      PORTB = LEDOFF;
      _delay_ms(HPERIOD);
    }

    _delay_ms(7.33); // instant

    for(i=0;i<NPULSES;i++)
    {
      PORTB = LEDON;
      _delay_ms(HPERIOD);
      PORTB = LEDOFF;
      _delay_ms(HPERIOD);
    }
    _delay_ms(1000);
  }
}

The same person goes into detail about the timing and tolerances here:

However, when I replace the PORTB = LEDON/LEDOFF; parts of the code above with standard arduino code (digitalWrite(pin,HIGH)) it ceases to work properly...

I'm tearing my hair out over here!