Is it possible to check current status of a pin

can i specifically in code check whether pin is HIGH or LOW ?

1 Like

yes, you can check it
:innocent: :innocent:

Short that pin with another unused pin and use digitalRead(‘second_pin’)
Directly checking the status after using digitalWrite will always return LOW.
Hope this helps.


No, Due to limitations in harware of boltiot module it isn’t possible to check the status of a pin.
You can rather keep a variable which tracks the status of the pin.
Hope this helps!

1 Like