Hi! Tell me how to read the PB4 port bit, for example, on an arduino nano using the C language? I looked at different forms, I can not figure out how to do it. I tried digitalRead, it worked. And there are other ways to read a port bit without digitalRead? I want to make the program as fast as possible.
Why ?
How fast?
Code your project in assembler, it doesn't get any faster than that.
Thanks, I'll try programming in C for now, but your suggestion is interesting.
As far as the arduino with the microcontroller allows.
I'm interested to know