Repository: adafruit/Adafruit_CircuitPython_ILI9341 (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 bef36d0..c448516 100644
--- a/README.rst
+++ b/README.rst
@@ -36,6 +36,7 @@ Usage Example
 
     import board
     import displayio
+    import fourwire
     import adafruit_ili9341
 
     spi = board.SPI()
@@ -43,13 +44,13 @@ Usage Example
     tft_dc = board.D10
 
     displayio.release_displays()
-    display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
+    display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)
 
     display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
 
     # Make the display context
     splash = displayio.Group()
-    display.show(splash)
+    display.root_group = splash
 
     color_bitmap = displayio.Bitmap(320, 240, 1)
     color_palette = displayio.Palette(1)


Test patch:
diff --git a/examples/ili9341_pitft_simpletest.py b/examples/ili9341_pitft_simpletest.py
index eaf4f35..02e2553 100644
--- a/examples/ili9341_pitft_simpletest.py
+++ b/examples/ili9341_pitft_simpletest.py
@@ -11,6 +11,7 @@
 import board
 import terminalio
 import displayio
+import fourwire
 from adafruit_display_text import label
 import adafruit_ili9341
 
@@ -21,12 +22,12 @@
 tft_cs = board.CE0
 tft_dc = board.D25
 
-display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
+display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)
 display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
 
 # Make the display context
 splash = displayio.Group()
-display.show(splash)
+display.root_group = splash
 
 # Draw a green background
 color_bitmap = displayio.Bitmap(display.width, display.height, 1)
diff --git a/examples/ili9341_shield_simpletest.py b/examples/ili9341_shield_simpletest.py
index 278c8cd..5294f77 100644
--- a/examples/ili9341_shield_simpletest.py
+++ b/examples/ili9341_shield_simpletest.py
@@ -10,6 +10,7 @@
 import board
 import terminalio
 import displayio
+import fourwire
 from adafruit_display_text import label
 import adafruit_ili9341
 
@@ -26,12 +27,12 @@
 tft_cs = board.D10
 tft_dc = board.D9
 
-display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
+display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs)
 display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
 
 # Make the display context
 splash = displayio.Group()
-display.show(splash)
+display.root_group = splash
 
 # Draw a green background
 color_bitmap = displayio.Bitmap(320, 240, 1)
diff --git a/examples/ili9341_simpletest.py b/examples/ili9341_simpletest.py
index 877e332..fe38c1c 100644
--- a/examples/ili9341_simpletest.py
+++ b/examples/ili9341_simpletest.py
@@ -11,6 +11,7 @@
 import board
 import terminalio
 import displayio
+import fourwire
 from adafruit_display_text import label
 import adafruit_ili9341
 
@@ -21,14 +22,12 @@
 tft_cs = board.D9
 tft_dc = board.D10
 
-display_bus = displayio.FourWire(
-    spi, command=tft_dc, chip_select=tft_cs, reset=board.D6
-)
+display_bus = fourwire.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D6)
 display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
 
 # Make the display context
 splash = displayio.Group()
-display.show(splash)
+display.root_group = splash
 
 # Draw a green background
 color_bitmap = displayio.Bitmap(320, 240, 1)