reading the output of a pin

I'd like check whether or not an output pin is high or low. Can this be done using a digital read? I couldn't find anything in the documentation.

Thanks!

I believe so yes. From the atmega datasheet section 2.4...

"Independent of the setting of Data Direction bit DDxn, the port pin can be read through the PINxn Register bit."

The Arduino digitalRead() function most certainly has to read the PINxn register to decide whether the pin is HIGH or LOW.

I've tested it and it seems to be working as expected :)

I'd like check whether or not an output pin is high or low. Can this be done using a digital read? I couldn't find anything in the documentation.

As already posted in can be done. However this is a pretty unusual task to do as the output pin state is whatever you last wrote to the pin in the sketch. Not saying you are doing it wrong, just unusual. ;)

Lefty