Using Serial.begin with ATtiny85

fungus:

Erni:
I don't think your problem is the Serial.begin(9600);

Yes it is.

The ATtiny85 doesn't have a serial port.

THanks.! I just removed the serial.begin line and it still all works fine on the arduino (as I don't want to see the serial data)...( this is to control an infrared LED that triggers a Sony camera) it goes in to the ATtiny85 OK, but works very erratically.....responding randomly to the R/C input signal....and sensitive to fingers placed near!
I added some code to (I think) specify the correct pins on the ATtiny..excerpt below

#include<multiCameraIrControl.h>
Sony A900(0);

#define RX_SIGNAL_IN 0 
#define RX_SIGNAL_IN_PIN 1 

#define NEUTRAL_RX 1500 
volatile int nRXIn = NEUTRAL_RX; 
volatile unsigned long ulStartPeriod = 0; 
volatile boolean bNewRXSignal = false; 

void setup()
{
  pinMode(1,INPUT);
  pinMode (0,OUTPUT);
  attachInterrupt(RX_SIGNAL_IN,calcInput,CHANGE);

  }

void loop()
{
 
 if(bNewRXSignal)
 {
   
 if(nRXIn >1600)
{ 
   A900.shutterNow();
  delay(2000);  //time in mS between still photos
}

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.