0

so I am testing out the PulseSensor code from here: https://github.com/WorldFamousElectronics/PulseSensorAmped_2_Sensors/tree/master/PulseSensorAmped_2_Sensors_1.5.0

In the interrupt.ino file, there is a function interruptSetup() which initializes the timer settings. However, I want to undo these settings first, as I have found out that this function is affecting my other readings. What is the default settings for the timer?

  • Unless you are using PWM, you can just set all these registers to zero. Otherwise, see Arduino's init() function. – Edgar Bonet Mar 26 '18 at 9:34
  • Is the init() function the default settings for the timer? – Dominic Teo Mar 26 '18 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.