ATTiny85 Definitions Issue

Hi,

I tryed to follow the MIT tutorial about programming an ATTiny85. I know some functions are not supported, but my guess is that I have some definitions wrong.

I have selected “ATtiny” from the Tools > Board menu and the particular ATtiny I'm using from the Tools > Processor menu, as instructed. I am using "Arduino as ISP", and this I am not sure about, but I selected 20MHz, since I am powering my ATTiny 85 with 5V reguleted.

Here goes a simple code I am trying to implement on the ATTiny:

#include "RGBdriver.h"
#define CLK 1
#define DIO 2
RGBdriver Driver(CLK,DIO);

int switchPin = 4;
boolean lastButton = LOW;
boolean currentButton = LOW;
int StripCase = 0;
boolean sequenceflag=0;
int redIntensity;
int greenIntensity;
int blueIntensity;
int sequencePhase;
int buttonDebounceTime = 5;
int sequenceDelay = 1000;

void setup()
{ 
  pinMode(switchPin, INPUT);
}  

void rgbSequence()
{
  switch (StripCase) 
  {
    case 1:
      redIntensity = 255;
      greenIntensity = 0;
      blueIntensity = 0;
      break;
    case 2:
      redIntensity = 0;
      greenIntensity = 255;
      blueIntensity = 0;
      break;
    case 3:
      redIntensity = 0;
      greenIntensity = 0;
      blueIntensity = 255;
      break;
    case 4:  
      redIntensity = 255;
      greenIntensity = 255;
      blueIntensity = 255;
      break;
    
      }
      break;
    default: 
      StripCase = 0;
      redIntensity = 0;
      greenIntensity = 0;
      blueIntensity = 0;
      break; 
    }
}

boolean debounce(boolean last)
{
  boolean current = digitalRead(switchPin);
  if (last != current)
  {
    delay(buttonDebounceTime);
    current = digitalRead(switchPin);
  }
  return current;
}

void loop()  
{ 
  currentButton = debounce(lastButton);
  if (lastButton == LOW && currentButton == HIGH)
  {
    StripCase++;
    sequenceflag=0;
  }
  lastButton = currentButton;
  rgbSequence();
  Driver.begin();
  Driver.SetColor(redIntensity, greenIntensity, blueIntensity);
  Driver.end();
}

I am having the following error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03

Did you burn a bootloader onto the ATTiny.
Usually the (internal) clock speed is 1MHz or 8MHz (selectable).