simontpellier
Member
Hi there
Oh? no one has reported an issue with frequencyTimer2 yet ?
I haven't found why... it's the classic "it worked and it doesn't work anymore!"
I used fT2 with no worries to generate synchronized PWMs but probably an update (but which one after a total reinstall ?) and now my code crashes.
Also, the sample that comes with the library crashes just like. The library itself does not seem questioned, on gitHub it has not evolved for a long time.
If someone wants to check with a very simple code I suggest the following.
I am very very annoyed by this problem!! also many many thanks for any solution!
Oh? no one has reported an issue with frequencyTimer2 yet ?
I haven't found why... it's the classic "it worked and it doesn't work anymore!"
I used fT2 with no worries to generate synchronized PWMs but probably an update (but which one after a total reinstall ?) and now my code crashes.
Also, the sample that comes with the library crashes just like. The library itself does not seem questioned, on gitHub it has not evolved for a long time.
If someone wants to check with a very simple code I suggest the following.
I am very very annoyed by this problem!! also many many thanks for any solution!
Code:
#include <FrequencyTimer2.h>
void setup() {
Serial.begin(115200);
delay(200);
FrequencyTimer2::setPeriod(500)
FrequencyTimer2::enable();
}
void setPWMs(void) {
Serial.println("FT2_OK");
}
void loop() {
FrequencyTimer2::setOnOverflow(setPWMs);
Serial.println("loop");
delay(1000);
}