Hi All
I am trying to get this propeller balancer https://github.com/QuadTinnakon/Arduino-Balance-a-Brushless-Motor-and-Propeller-Balancing-
Working in Teensy 3.5.
The following lines are written for the Mega which need to be converted to Teensy speak.
//DDRK &= ~(1<<0); PORTK |= (1<<0); PCMSK2 |= (1<<0); PCICR |= (1<<2);
//ISR(PCINT2_vect){if(PINK&(1<<0))ISRspeed();}
PJRC have explanations of the Interrupts on https://www.pjrc.com/teensy/interrupts.html
But I can't get it to work. There are only a few examples of Port manipulation for interrupts on the net.
Can someone explain step by step how this is converted ?
I am trying to get this propeller balancer https://github.com/QuadTinnakon/Arduino-Balance-a-Brushless-Motor-and-Propeller-Balancing-
Working in Teensy 3.5.
The following lines are written for the Mega which need to be converted to Teensy speak.
//DDRK &= ~(1<<0); PORTK |= (1<<0); PCMSK2 |= (1<<0); PCICR |= (1<<2);
//ISR(PCINT2_vect){if(PINK&(1<<0))ISRspeed();}
PJRC have explanations of the Interrupts on https://www.pjrc.com/teensy/interrupts.html
But I can't get it to work. There are only a few examples of Port manipulation for interrupts on the net.
Can someone explain step by step how this is converted ?