From 92311b65fbb64adb39026ca7d0d334ccaf1684bf Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Tue, 12 Jan 2021 16:32:20 +0100 Subject: [PATCH] examples/pup/hub_primehub: no need to call off() The animation is now cleared automatically when invoking the pixel method, so there's no need to call this manually anymore. See https://github.com/pybricks/support/issues/195 --- examples/pup/hub_inventorhub/display_pixel.py | 3 --- examples/pup/hub_primehub/display_pixel.py | 3 --- examples/pup/hub_shared/display_pixel.py | 3 --- 3 files changed, 9 deletions(-) diff --git a/examples/pup/hub_inventorhub/display_pixel.py b/examples/pup/hub_inventorhub/display_pixel.py index 88a1a5a..f3a2e0c 100644 --- a/examples/pup/hub_inventorhub/display_pixel.py +++ b/examples/pup/hub_inventorhub/display_pixel.py @@ -4,9 +4,6 @@ from pybricks.tools import wait # Initialize the hub. hub = InventorHub() -# Turn off all the pixels. -hub.display.off() - # Turn on the pixel at row 1, column 2. hub.display.pixel(1, 2) wait(2000) diff --git a/examples/pup/hub_primehub/display_pixel.py b/examples/pup/hub_primehub/display_pixel.py index 720caa6..a6509f1 100644 --- a/examples/pup/hub_primehub/display_pixel.py +++ b/examples/pup/hub_primehub/display_pixel.py @@ -4,9 +4,6 @@ from pybricks.tools import wait # Initialize the hub. hub = PrimeHub() -# Turn off all the pixels. -hub.display.off() - # Turn on the pixel at row 1, column 2. hub.display.pixel(1, 2) wait(2000) diff --git a/examples/pup/hub_shared/display_pixel.py b/examples/pup/hub_shared/display_pixel.py index b90ee57..40e375c 100644 --- a/examples/pup/hub_shared/display_pixel.py +++ b/examples/pup/hub_shared/display_pixel.py @@ -4,9 +4,6 @@ from pybricks.tools import wait # Initialize the hub. hub = ExampleHub() -# Turn off all the pixels. -hub.display.off() - # Turn on the pixel at row 1, column 2. hub.display.pixel(1, 2) wait(2000)