I have read through most of the posts relating to the comparator function but I do not believe this is the direction I should go in.
I am using analog inputs EMG sensor boards as input for a virtual keyboard. The threshold can be adjusted to help with coordination.
I need an interrupt to that can be triggered in the same way. I tried the following but it does not allow me to set a threshold:
Ideally something like this would be ideal but I have read that this is not possible:
pin5 would be the interrrupt.
Guidance would be appreciated.
Thank you!
Paul
I am using analog inputs EMG sensor boards as input for a virtual keyboard. The threshold can be adjusted to help with coordination.
Code:
if (sv0 > 250)
{
key = key | B00000001;
I need an interrupt to that can be triggered in the same way. I tried the following but it does not allow me to set a threshold:
Code:
attachInterrupt(5, swap, RISING);
Ideally something like this would be ideal but I have read that this is not possible:
Code:
if (sv3 > 250)
pin5 = HIGH;
pin5 would be the interrrupt.
Guidance would be appreciated.
Thank you!
Paul