balajibalasubramaniam / CircuitPlayground

Project labs at K-State University
GNU General Public License v3.0
0 stars 1 forks source link

CircuitPlayground/DisplayTemperature /code.py Chnages for CircuitPython 9+ #1

Closed MacGnG closed 10 months ago

MacGnG commented 10 months ago

First, THANK YOU!! for this example (https://www.youtube.com/watch?v=JFP1OR6FBrw) It was very helpful getting me started with the GIZMO!

REFERENCE: (https://docs.circuitpython.org/en/8.2.x/shared-bindings/displayio/index.html#displayio.Display.show)

For anyone using new version CircuitPython 9+ (adafruit-circuitpython-circuitplayground_express_displayio-en_US-9.0.0-alpha.5.uf2) from... (https://adafruit-circuit-python.s3.amazonaws.com/index.html?prefix=bin/circuitplayground_express_displayio/en_US/)

Change the ORIGINAL Lines #18 through 20

# Make the display context
splash = displayio.Group()
display.show(splash)

NEW Line #18 through 20 (For CircuitPlayground 9+)

# Make the display context
splash = displayio.Group()
display.root_group = splash

Only an issue if on CircuitPython 9+, but might be helpful for others! Thanks :)

MacGnG commented 10 months ago

Updated to "display.root_group = splash" & closing this issue. Thanks.