Browse Source

tone() minimum frequency is 1 Hz

teensy4-core
PaulStoffregen 7 years ago
parent
commit
bb72c33d14
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy3/Tone.cpp

+ 1
- 0
teensy3/Tone.cpp View File

} else { } else {
count = 0xFFFFFFFD; count = 0xFFFFFFFD;
} }
if (frequency < 1) frequency = 1; // minimum is 1 Hz
usec = (float)500000.0 / (float)frequency; usec = (float)500000.0 / (float)frequency;
config = portConfigRegister(pin); config = portConfigRegister(pin);



Loading…
Cancel
Save