ambiot / ambd_sdk

Release SDK for AmebaD
99 stars 53 forks source link

gpio direction in sleep #37

Open libsong opened 11 months ago

libsong commented 11 months ago

Hi, do we need gpio direction settings in tickless sleep? seems pmap_func had no this.

S10143806H commented 11 months ago

Hi @libsong,

Firstly, may I know whether you could get the AmebaD SDK Application Note from the AmebaIoT Official Website? Chapter 14 of which provided a clear guide on how to use AmebaD Deep Sleep/Sleep or Tickless mode: image

And on page 129 it is indicating that the user is able to change the pin Polarity sleep_wakepin_config[] array which reflects the expected edge to wake up the pin: image

Thank you