ATtiny85 tone()

I need to make a project that blinks 3 RGB led's (common anode) in the sequence red, blue, green while a happy birthday song plays. Now it works on the Arduino fine, but i need to transfer that to a ATtiny85. The issue is that I don't know how to do it; that is, i don't know how to make tone() work on the Attiny85. Please help and thank you in advance.

tone works for me on t85 processors. Which core are you using?

What is a core? I'm using the ATtiny85 20PU 8MHz internal clock. I hope that helps, but do you need to download anything.

Have you ever programmed your ATtiny85 processor?

Yes, I have, but i know that only some things on a ATtiny85 are supported, and unfortunately tone isn't; so i was wondering is it possible to do it, and I saw videos on youtube about it but NONE of them showed how! So can you please show me how?

In order to program your ATtiny85 processor using the Arduino IDE you had to install a "core". Find a different one that has support for tone.

Where do I get that "core"?

All what I want is step by step detailed instructions to make the tone() and other functions work

In @DrAzzy's signature is a link to a JSON file. Pointing the Arduino IDE Board Manager to that file will download his ATtiny core. I have no idea if that variation of tone works.

This core has a variation of tone the works. I have no idea if the instructions are up-to-date with the latest Arduino IDE; you will not be able to use the Board Manager.

When I upload I get this:

Arduino: 1.6.7 (Mac OS X), Board: "ATtiny85 @ 8 MHz (internal oscillator; BOD disabled)"

Board tiny:avr:attiny85at8 doesn't define a 'build.board' preference. Auto-set to: AVR_ATTINY85AT8
exec: "-w": executable file not found in $PATH
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

I used the second core you gave a link to

I can't reproduce that problem with my core on my system, but I'm running windows, and don't have access to a mac to investigate that issue.

If you could enable verbose compile output in preferences and attempt to compiole the sketch (eg, verify or upload) and send me the full compiler output, I would really appreciate that.

My core is supposed to work on all supported platforms, so I consider this a very serious bug.

Here is the full error:

Arduino: 1.6.7 (Mac OS X), Board: "ATtiny85 @ 8 MHz (internal oscillator; BOD disabled)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/music1/Library/Arduino15/packages" -hardware "/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/hardware" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/music1/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/libraries" -fqbn=tiny:avr:attiny85at8 -vid-pid=0X2341_0X0043 -ide-version=10607 -build-path "/var/folders/2_/gg5ndsf16gggn1zsj_hk5pbc0000gn/T/build5128fb7cc77c939e56a1b0b92c224f55.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/Happy_B-Day_Song/Happy_B-Day_Song.ino"
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/music1/Library/Arduino15/packages" -hardware "/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/hardware" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/music1/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/libraries" -fqbn=tiny:avr:attiny85at8 -vid-pid=0X2341_0X0043 -ide-version=10607 -build-path "/var/folders/2_/gg5ndsf16gggn1zsj_hk5pbc0000gn/T/build5128fb7cc77c939e56a1b0b92c224f55.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/Happy_B-Day_Song/Happy_B-Day_Song.ino"
Board tiny:avr:attiny85at8 doesn't define a 'build.board' preference. Auto-set to: AVR_ATTINY85AT8
"" -w -x c++ -E -CC -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_ATTINY85AT8 -DARDUINO_ARCH_AVR "-I/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/hardware/tiny/avr/cores/tiny" "/var/folders/2_/gg5ndsf16gggn1zsj_hk5pbc0000gn/T/build5128fb7cc77c939e56a1b0b92c224f55.tmp/sketch/Happy_B-Day_Song.ino.cpp" -o "/dev/null"
"" -w -x c++ -E -CC -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_ATTINY85AT8 -DARDUINO_ARCH_AVR "-I/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/hardware/tiny/avr/cores/tiny" "/var/folders/2_/gg5ndsf16gggn1zsj_hk5pbc0000gn/T/build5128fb7cc77c939e56a1b0b92c224f55.tmp/sketch/Happy_B-Day_Song.ino.cpp" -o "/dev/null"
"" -w -x c++ -E -CC -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_ATTINY85AT8 -DARDUINO_ARCH_AVR "-I/Users/music1/Desktop/Programing/Arduino Stuff/Arduino Sketches/Arduino/hardware/tiny/avr/cores/tiny" "/var/folders/2_/gg5ndsf16gggn1zsj_hk5pbc0000gn/T/build5128fb7cc77c939e56a1b0b92c224f55.tmp/sketch/Happy_B-Day_Song.ino.cpp" -o "/var/folders/2_/gg5ndsf16gggn1zsj_hk5pbc0000gn/T/build5128fb7cc77c939e56a1b0b92c224f55.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
exec: "-w": executable file not found in $PATH
Error compiling.

What the hell.... it's using an empty string instead of the correct path to the compiler.....

How can I fix this?

ArduinoLLC:
I used the second core you gave a link to

Use the first. Remove whatever you installed from the second.

Oh wait, you're right - that error isn't coming from my core - in my core it would look like

ATtiny x5 Series (ATtiny85, 8mhz (internal), B.O.D. disabled), or something like that.

Please help guys, I need an answer as soon as possible.

I gave you an answer in reply #15.

Sorry I didn't notice that there was another page. My bad.