Ligne 83 : |
Ligne 83 : |
| | | |
| == La LED heartbeat == | | == La LED heartbeat == |
| + | |
| + | By default the heartbeat LED flashes once every 4s to signal that the system is alive. This can be overridden through the {{fname|wipy}} module: |
| + | |
| + | <nowiki>>>> import wipy |
| + | >>> wipy.heartbeat(False)</nowiki> |
| + | |
| + | There are currently 2 kinds of errors that you might see: |
| + | |
| + | # If the heartbeat LED flashes quickly, then a Python script (eg {{fname|main.py}}) has an error. Use the REPL to debug it. |
| + | # If the heartbeat LED stays on, then there was a hard fault, you cannot recover from this, the only way out is to press the reset switch. |
| + | |
| + | |
| + | Détails sur les modes de mise en veille (''sleep''): |
| + | * {{fname|machine.idle()}} : Power consumption: ~12mA (in WLAN STA mode). Wake sources: any hardware interrupt (including systick with period of 1ms), no special configuration required. |
| + | * {{fname|machine.sleep()}} : 950uA (in WLAN STA mode). Wake sources are Pin, RTC and WLAN |
| + | * {{machine.deepsleep()}} : ~5uA. Wake sources are Pin and RTC. |
| | | |
| {{WIPY-TRAILER}} | | {{WIPY-TRAILER}} |