I want to completely disable REPL. WebREPL seems easy enough to prevent (just don't ever import webrepl_setup), but regardless of what I try REPL via a wired connection always works. Here are some of the things I've tried:
Code: Select all
# Attempt 1: Tried to disable terminal duplication by setting the stream to None per https://docs.micropython.org/en/latest/library/uos.html#terminal-redirection-and-duplication
uos.dupterm(None)
# Attempt 2: Tried to disable terminal duplication by setting the stream to a UART object with the baudrate set to 0 instead of 115200
uos.dupterm(machine.UART(0, 0), 0)
uos.dupterm(machine.UART(1, 0), 1)
# Attempt 3: Tried to disable the UART pins by making them inputs
Pin(1, Pin.IN)
Pin(3, Pin.IN)
# Attempt 4: Tried to disable the UART pins by making them outputs
Pin(1, Pin.OUT, value=0)
Pin(3, Pin.OUT, value=0)
What am I missing?