Is it possible to do a fast digitalRead() on the seed Xiao NRF52840 similar to bitRead() with arduino boards. I have tried PIND and PORTD but neither will compile. I am reading a quadrature encode with pins 5 + 6 and need as much speed as possible.
something like this, but I don’t know how to call the actual pins correctly.
#define readA bitRead(PIND,5)//faster than digitalRead()
#define readB bitRead(PIND,6)//faster than digitalRead()