On program startup, I get the first worker name to come up with the current timestamp, but within a few seconds I get an error. No button press is involved.
I'm getting a "BUTTON_x in use" error trying to use the PinAlarm with the most recent CircuitPython and libs for MagTag. Pin D14 returns the error below. Pin D15 returns the error "BUTTON_A in use", etc. The error line, 64, is the first line in the code below that sets the PinAlarm.
I import alarm, alarm.pin, board, time and MagTag from adafruit_magtag.magtag.
The demo programs I found for PinAlarm work fine. I can't see any difference in my code other than my imports.
I'm just sharing just a fragment in case this is obvious, or a known issue. I can post all of my code if this isn't sufficient to diagnose.
Code: Select all
pin_alarm = alarm.pin.PinAlarm(pin=board.D14, value=False, pull=True)
board.DISPLAY.refresh()
alarm.exit_and_deep_sleep_until_alarms(pin_alarm)
Code: Select all
code.py output:
Connecting to AP ______
Getting time for timezone America/New_York
Traceback (most recent call last):
File "code.py", line 64, in <module>
ValueError: BUTTON_B in use
Brian