Re: ESP32: get which EXT1 pin caused wake
Posted: Sun Oct 17, 2021 7:23 am
@roberthh: This is great!
I propose to wait a week or so to collect some more opinions and then create a PR from your code.
For me, a tuple of pin numbers looks sufficient.
@sergei.nz: I don't care about convenience. A few lines of more user code to decode the bitmap is better than not having this information at all. My arguments were about consistency of the interface. The current micropython docs mention the term "bitmap" exactly twice (for memory management and some framebuffer function), so it just felt ugly/wrong for me to return the bitmap to users.
I propose to wait a week or so to collect some more opinions and then create a PR from your code.
For me, a tuple of pin numbers looks sufficient.
@sergei.nz: I don't care about convenience. A few lines of more user code to decode the bitmap is better than not having this information at all. My arguments were about consistency of the interface. The current micropython docs mention the term "bitmap" exactly twice (for memory management and some framebuffer function), so it just felt ugly/wrong for me to return the bitmap to users.