Here is a simple code snippet that reproduces the problem when you hit button "C".
I'm running 6.1.0 RC0, with mpy bundle 20210109
- Code: Select all | TOGGLE FULL SIZE
import time
import microcontroller
import terminalio
from adafruit_magtag.magtag import MagTag
magtag = MagTag()
magtag.peripherals.neopixel_disable = False
magtag.add_text(
text_font=terminalio.FONT,
text_position=(120, 55),
text_scale=2,
)
magtag.set_text("Idle")
while True:
if magtag.peripherals.button_a_pressed:
magtag.set_text("A")
elif magtag.peripherals.button_b_pressed:
magtag.set_text("b")
elif magtag.peripherals.button_c_pressed:
microcontroller.reset()
time.sleep(.1)