Simple test

Ensure your device works with this simple test.

examples/argv_file_simpletest.py
 1# SPDX-FileCopyrightText: Copyright (c) 2025 Tim Cocks for Adafruit Industries
 2#
 3# SPDX-License-Identifier: Unlicense
 4
 5import supervisor
 6
 7from adafruit_argv_file import write_argv
 8
 9write_argv("argv_file_otherfile.py", [42, "CircuitPython is Cool", None, [1, 2, 3]])
10
11print("Launching: argv_file_otherfile.py")
12supervisor.set_next_code_file("argv_file_otherfile.py")
13supervisor.reload()
examples/argv_file_otherfile.py
1# SPDX-FileCopyrightText: Copyright (c) 2025 Tim Cocks for Adafruit Industries
2#
3# SPDX-License-Identifier: Unlicense
4
5from adafruit_argv_file import read_argv
6
7args = read_argv(__file__)
8print(args)