using IntervalTimer with SPI.usingInterrupt()

Status
Not open for further replies.
Ok, I've updated IntervalTimer.h to allow this.

To use this, replace your copy of IntervalTimer.h in hardware/teensy/avr/cores/teensy3. Then you should be able to do this:

Code:
void setup() {
  myTimer.begin(myfunc, 100.45);
  SPI.usingInterrupt(myTimer);
}

Please be aware you must start the IntervalTimer. Before it's started, it hasn't been allocated to any interrupt.
 

Attachments

  • IntervalTimer.h
    3.5 KB · Views: 95
Status
Not open for further replies.
Back
Top