The ATTiny45 is not a standard Arduino and the 'tone()' function is part of the Arduino core. Sounds like the ATtiny core you installed doesn't support the tone() function. Have you tried the 'arduino-tiny' core;
The ATTiny45 is not a standard Arduino and the 'tone()' function is part of the Arduino core. Sounds like the ATtiny core you installed doesn't support the tone() function. Have you tried the 'arduino-tiny' core;