mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
Also activate auto formatting. Bump flake8 and mark black disagreements in setup.cfg.
13 lines
214 B
Python
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!")
|