#include <TinyDebug.h>

#define LED 0


void change_freq(byte scalar){
  noInterrupts();
  // CLKPR = 0;
  CLKPR = 0b10000000;
  CLKPR = scalar;
  interrupts();
}




void setup()
{
pinMode (LED, OUTPUT);
}  


bool on = true;
volatile int counter = 0;


void loop(){ 
  while (1){
    if (on){
      Debug.println("1x");
      change_freq(0b00000000);
      digitalWrite (LED, 1);
      delay(8000);
      digitalWrite (LED, 0);
      delay(8000);
    }else{
      Debug.println("8x");
      change_freq(0b00000011);
      digitalWrite (LED, 1);
      delay(8000);
      digitalWrite (LED, 0);
      delay(8000);
    }
    on = !on;
  }

}
ATTINY8520PU