Good morning all,
I have the following line of code in some Arduino IDE code, I've looked at rWire and I still do not understand it, I'm absolutely none the wiser.
So the interrupt is on pin 2, and when that pin goes from LOW to HIGH it calls a sub named zero_crosss_int, but how exactly do I translate this line into actual usable code that works in B4R?
Thank you...
I have the following line of code in some Arduino IDE code, I've looked at rWire and I still do not understand it, I'm absolutely none the wiser.
B4X:
attachInterrupt(2, zero_crosss_int, RISING);
So the interrupt is on pin 2, and when that pin goes from LOW to HIGH it calls a sub named zero_crosss_int, but how exactly do I translate this line into actual usable code that works in B4R?
Thank you...
Last edited: