pycom / pycom-documentation

Pycom Official Documentation for WiPy 2.0, Wipy 3.0 LoPy, Lopy4, SiPy, FiPy, GPy, etc.
https://docs.pycom.io
36 stars 81 forks source link

improve pin.hold() explanation #428

Closed gijsio closed 3 years ago

peter-pycom commented 3 years ago

I think this explanation is still a mix of relevant use cases and corner cases and exceptions all mangled into one. I suggest to 1) explain the relevant use case (deepsleep), then 2) give a relevant example and 3) now add whatever footnotes are needed. Smt like this:

Get or set the pin hold. This functionality can be used to retain the pin's level during deepsleep. Only pins in the RTC power domain can retain their value through deep sleep or reset. These are: P2, P3, P4, P6, P8, P9, P10, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, P23

... example with deepsleep

A few points to keep in mind when using the pin hold functionality: