Repository: adafruit/Adafruit_CircuitPython_SSD1680 (language: python)

Issue:
Convert `.show()` to `.root_group =` for CircuitPython 9
in examples/ and README.rst


Discussion / hints:

Fix patch:
diff --git a/README.rst b/README.rst
index 0ff9a33..233f95f 100644
--- a/README.rst
+++ b/README.rst
@@ -75,6 +75,7 @@ Usage Example
     import time
     import board
     import displayio
+    import fourwire
     import adafruit_ssd1680
 
     displayio.release_displays()
@@ -86,7 +87,7 @@ Usage Example
     epd_reset = board.D8    # Set to None for FeatherWing
     epd_busy = board.D7    # Set to None for FeatherWing
 
-    display_bus = displayio.FourWire(
+    display_bus = fourwire.FourWire(
         spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
     )
     time.sleep(1)
@@ -115,7 +116,7 @@ Usage Example
 
     g.append(t)
 
-    display.show(g)
+    display.root_group = g
 
     display.refresh()
     print("refreshed")
diff --git a/examples/ssd1680_2.13_featherwing.py b/examples/ssd1680_2.13_featherwing.py
index c0b0dc9..d97df53 100644
--- a/examples/ssd1680_2.13_featherwing.py
+++ b/examples/ssd1680_2.13_featherwing.py
@@ -17,6 +17,7 @@
 import time
 import board
 import displayio
+import fourwire
 import adafruit_ssd1680
 
 displayio.release_displays()
@@ -26,7 +27,7 @@
 epd_cs = board.D9
 epd_dc = board.D10
 
-display_bus = displayio.FourWire(
+display_bus = fourwire.FourWire(
     spi, command=epd_dc, chip_select=epd_cs, baudrate=1000000
 )
 time.sleep(1)
@@ -48,7 +49,7 @@
 
     g.append(t)
 
-    display.show(g)
+    display.root_group = g
 
     display.refresh()
 
diff --git a/examples/ssd1680_2.13_mono_eink_bonnet.py b/examples/ssd1680_2.13_mono_eink_bonnet.py
index be9cd41..e09fdc8 100644
--- a/examples/ssd1680_2.13_mono_eink_bonnet.py
+++ b/examples/ssd1680_2.13_mono_eink_bonnet.py
@@ -18,6 +18,7 @@
 import time
 import board
 import displayio
+import fourwire
 import adafruit_ssd1680
 
 displayio.release_displays()
@@ -29,7 +30,7 @@
 epd_reset = board.D27  # Set to None for FeatherWing
 epd_busy = board.D17  # Set to None for FeatherWing
 
-display_bus = displayio.FourWire(
+display_bus = fourwire.FourWire(
     spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
 )
 time.sleep(1)
@@ -52,7 +53,7 @@
     t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
     g.append(t)
 
-    display.show(g)
+    display.root_group = g
 
     display.refresh()
 
diff --git a/examples/ssd1680_2.13_tricolor_breakout.py b/examples/ssd1680_2.13_tricolor_breakout.py
index 089fdeb..e8066b6 100644
--- a/examples/ssd1680_2.13_tricolor_breakout.py
+++ b/examples/ssd1680_2.13_tricolor_breakout.py
@@ -14,6 +14,7 @@
 import time
 import board
 import displayio
+import fourwire
 import adafruit_ssd1680
 
 displayio.release_displays()
@@ -25,7 +26,7 @@
 epd_reset = board.D5
 epd_busy = board.D6
 
-display_bus = displayio.FourWire(
+display_bus = fourwire.FourWire(
     spi, command=epd_dc, chip_select=epd_cs, baudrate=1000000
 )
 time.sleep(1)
@@ -47,7 +48,7 @@
 
     g.append(t)
 
-    display.show(g)
+    display.root_group = g
 
     display.refresh()
 
diff --git a/examples/ssd1680_four_corners.py b/examples/ssd1680_four_corners.py
index 007a3c7..24218ad 100644
--- a/examples/ssd1680_four_corners.py
+++ b/examples/ssd1680_four_corners.py
@@ -13,6 +13,7 @@
 import board
 import busio
 import displayio
+import fourwire
 import terminalio
 import adafruit_ssd1680
 
@@ -27,7 +28,7 @@
 epd_reset = board.EPD_RESET
 epd_busy = board.EPD_BUSY
 
-display_bus = displayio.FourWire(
+display_bus = fourwire.FourWire(
     spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
 )
 display = adafruit_ssd1680.SSD1680(
@@ -42,7 +43,7 @@
 
 # Make the display context
 main_group = displayio.Group()
-display.show(main_group)
+display.root_group = main_group
 
 palette = displayio.Palette(2)
 palette[0] = 0x000000


Test patch:
diff --git a/examples/ssd1680_simpletest.py b/examples/ssd1680_simpletest.py
index 37b2dd1..6fa459d 100644
--- a/examples/ssd1680_simpletest.py
+++ b/examples/ssd1680_simpletest.py
@@ -18,6 +18,7 @@
 import time
 import board
 import displayio
+import fourwire
 import adafruit_ssd1680
 
 displayio.release_displays()
@@ -29,7 +30,7 @@
 epd_reset = board.D8  # Set to None for FeatherWing
 epd_busy = board.D7  # Set to None for FeatherWing
 
-display_bus = displayio.FourWire(
+display_bus = fourwire.FourWire(
     spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
 )
 time.sleep(1)
@@ -52,7 +53,7 @@
     t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
     g.append(t)
 
-    display.show(g)
+    display.root_group = g
 
     display.refresh()