Files
pybricks-api/examples/pup/remote/set_name.py
T
Laurens Valk bd7806d2d4 all: Format with black.
Also activate auto formatting. Bump flake8 and mark black
disagreements in setup.cfg.
2022-05-27 16:22:05 +02:00

13 lines
214 B
Python

from pybricks.pupdevices import Remote
# Connect to any remote.
my_remote = Remote()
# Print the current name of the remote.
print(my_remote.name())
# Choose a new name.
my_remote.name("truck2")
print("Done!")