Closed ghamaya closed 2 weeks ago
Interesting image, thank you.
The Digital.write()
API doesn't fully initialize the pin itself. It assumes that has been done elsewhere. The Digital
instance does full initialization.
The ECMA-419 IO APIs (which include Digital) eliminate this ambiguity by only provide the write
method on an instance.
So, yes, it is better to use either the new Digital
or ECMA-419'digital.
When you use the Digital module for critical control, it is better to use clear description. Below sample (pin:4, pin:5) shows the difference.