MagTag LEDs flash on waking from deep sleep

オープン
#11,876 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, python
領域
embedded-iot

調査の方向性

The reproduction is the alarm.exit_and_deep_sleep_until_alarms snippet on a MagTag (ESP32-S2), and the report says the flash first appears between 10.2.1 and 10.3.0, so start by bisecting that range. Look at the ESP32-S2 port's deep-sleep and wake path and at what initializes the NeoPixels on boot. Done means the NeoPixels no longer flash yellow after waking, confirmed on real MagTag hardware, since the pretend-sleep mode does not reproduce it.

索引モデルが issue の本文から書いたものです。

説明

bug
CircuitPython version and board name
Adafruit CircuitPython 11.0.0-alpha.3-9-g1ae2bac84e on 2026-11-13; Adafruit MagTag with ESP32S2
Code/REPL
import time
import alarm

print("Awake.")
time.sleep(5)
time_alarm = alarm.time.TimeAlarm(monotonic_time=time.monotonic() + 15)
print("Entering deep sleep.")
alarm.exit_and_deep_sleep_until_alarms(time_alarm)
Behavior

(See Item #1 in "Additional Information")

code.py output:
Awake.
Entering deep sleep.

Code done running.
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.
Pretending to deep sleep until alarm, CTRL-C or file write.

Adafruit CircuitPython 11.0.0-alpha.3-9-g1ae2bac84e on 2026-11-13; Adafruit MagTag with ESP32S2

Description
  1. Neopixels flash yellow 4x on waking from deep sleep (does not flash the initial blue)
Additional information
  1. Does not actually happen when running code above, per item 2 immediately following. To my knowledge I don't have a way to access the serial output while also putting the board into actual deep sleep (not pretend)
  2. Does not happen when Magtag is plugged in (i.e. pretending to deep sleep)
  3. Behavior is not present in 10.2.1 (no LEDs flash on wakeup from deep sleep), but is present on everything I've tested beyond that (10.3.0, 10.3.2, absolute newest 11.0.0 as listed above)

(Opened per recommendation of tannewt: https://forums.adafruit.com/viewtopic.php?t=225848)

主要言語
C
スター
4.6k
フォーク
1.4k
平均マージ
1日
マージ済み PR(30日)
212

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

adafruit/circuitpython のほかの issue

adafruit/circuitpython の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。