Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATtiny85 Tone() doesn't work at all #155

Closed
zamanturja opened this issue Jul 22, 2017 · 5 comments
Closed

ATtiny85 Tone() doesn't work at all #155

zamanturja opened this issue Jul 22, 2017 · 5 comments

Comments

@zamanturja
Copy link

is there any other process to solve the problem?

@SpenceKonde
Copy link
Owner

I have definitely been able to get tone() to work on attiny85. I don't have one handy, but it definitely worked. It is known that it doesn't work when you repeatedly call tone() in a tight loop , but I definitely got tones out of it...

@zamanturja
Copy link
Author

zamanturja commented Jul 22, 2017

i have the board manager from this site: githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

i have tried with all the pins of ATtiny 85, but still not working. I'm using a minipro programmer to flash the chip using the hex file generated by arduino IDE(processor ATtiny85, Internal 8 MHz selected)...

In the Arduino IDE
void setup() {
pinMode(1, OUTPUT);
tone(1, 432, 500);
delay(3000);
noTone(1);
}
void loop() {
}
Just for testing*

am i doing it in the right way ?

@SpenceKonde
Copy link
Owner

You're not using this core!
Tone is busted on the d. a. mellis core.

Board manager url for this core is http://drazzy.com/package_drazzy.com_index.json

@SpenceKonde
Copy link
Owner

It should definitely work on this core (note that pin 4 will give best results, since it can be done fully in hardware)

@zamanturja
Copy link
Author

Thanks a lot, you solved it !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants