6.2. BUTN¶
6.2.1. Overview¶
The BUTN example show how to use PBUTN and WBUTN to enter or exit power down mode.
6.2.2. Note¶
When entering power down mode, code will be lost in RAM. To demonstrate this sample, code cannot be placed in RAM.
6.2.3. Board Setting¶
No special settings are required
6.2.4. Running the example¶
When the example runs successfully, press PBUTN 16s, enter power down mode. In power down mode, press PBUTN or WBUTN 0.5s, exit power down mode. When press PBUTN/WBUTN, PLED/WLED flashing according to the following rules.
when butn input high level, led off
when butn input low level(keep 0.5s), led flashes quickly
when butn input low level(keep 4s), led flashes slowly
when butn input low level(keep 16s), led off again
The following message is displayed in the terminal and board will send back received characters:
> Please press PBUTN 16s to enter power down mode, then press PBUTN or WBUTN 0.5s to wake up from power down mode.