Hello everybody!
I started to learn programming microcontrollers Attiny series. And faced with the fact that MC does not support all Arduino functions, such Attiny13 not support TONE function. Where can I find out what Arduino functions support one or another of AVR microcontroller and particularly Attigny series?
I'm currently looking into this, and (so far) have found these
http://www.hobbytronics.co.uk/arduino-attiny
http://playground.arduino.cc/Main/ArduinoOnOtherAtmelChips
https://cdn.sparkfun.com/assets/e/9/1/f/5/Tiny_QuickRef_v2.pdf
Thank you for the information!
It may depend on which hardware package you're using. Some of them(such as ATTinyCore and MicroCore) include their own modified core in which case you would need to check the documentation or source code for that package. Others(such as damellis/attiny) reference the standard Arduino AVR Boards core.
Stavr:
such Attiny13 not support TONE function. Where can I find out what Arduino functions support one or another of AVR microcontroller and particularly Attigny series?
If you are looking for a way to play a tone/song with Attiny13. I guess so. Here probably is one of the ways to achieve it. Take a look and have fun.
Thank you all for the information. I'm new and for me circuit like this else complicated. My task was simple - to Attiny13A necessary output sound and light alarm. Light is a LED, but for the sound I wanted to put Piezo and function TONE (pin, 4000, 100) set the beep. But when I started to fill sketch to Attiny13A of the Arduino IDE via Arduino UNO, it appeared that the error tone function is not supported. Here are seeking solutions.
Use an active(instead of passive) piezo buzzer and you won't need tone, you can just use digitalWrite instead.
Now I see only one solution. Write code in AVR Studio and the hex file to fill in Attiny13.
pert:
Use an active(instead of passive) piezo buzzer and you won't need tone, you can just use digitalWrite instead.
Worthy solution, thank you)