Test D0 as high or low

hi,

I want know a command to check if digitalwrite D0 is high or low

Thank you

Hi rbbahia!

I am not sure why you need to check if digitalwrite D0 is high or low. But the easiest way is to attach a led to that pin. =D
So once it lights up, it means digitalwrite is high. :wink:

But if you really want a command to check, you can always attach a wire from D0 to D1. And set D1 to input. So when digitalread D1, you can see whether D0 is high or low. (But this is just a check only, usually when you code digitalwrite HIGH, it should be high already)

Click here to see the document about I/O pins