Pages: [1]   Go Down
Author Topic: Tone library and millis clash?  (Read 659 times)
0 Members and 1 Guest are viewing this topic.
Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1222
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


In the description of the Tone library, it states:-

" Also, although it's the last timer to be allocated, timer 0 (which is used for millis() among other things) will be affected if used. "


Does this mean only while the tone is playing?  or will my timing of my project which uses the millis for a countdown timer be compromised by merely calling up the tone library?

I want to sound a horn at the end of the countdown, so I dont need the timer then..  I just need confirmation
Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13073
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How many tones will be playing at one time?
Logged

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1222
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think just one, I want to make a horn type sound for the end of a timeout period, a square wave into a fet amp and speaker.
Not worried about distortion, just lots of noise ( that's what my late Dad used to say about the Beatles :-) )
Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13073
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Then you'll be fine.
Logged

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 19
Posts: 1222
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks
Logged

With my mobile phone I can call people and talk to them -  how smart can you get ?

Pages: [1]   Go Up
Jump to: