Skip to content

Remove obsolete references to ustruct #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions adafruit_rgb_display/ili9341.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@

* Author(s): Radomir Dopieralski, Michael McWethy
"""

try:
import struct
except ImportError:
import ustruct as struct
import struct

from adafruit_rgb_display.rgb import DisplaySPI

Expand Down
5 changes: 1 addition & 4 deletions adafruit_rgb_display/rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@
* Author(s): Radomir Dopieralski, Michael McWethy
"""

import struct
import time

try:
import numpy
except ImportError:
numpy = None
try:
import struct
except ImportError:
import ustruct as struct

from adafruit_bus_device import spi_device

Expand Down
5 changes: 1 addition & 4 deletions adafruit_rgb_display/st7735.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@

* Author(s): Radomir Dopieralski, Michael McWethy
"""
import struct

try:
import struct
except ImportError:
import ustruct as struct
from micropython import const
from adafruit_rgb_display.rgb import DisplaySPI

Expand Down
6 changes: 2 additions & 4 deletions adafruit_rgb_display/st7789.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
* Author(s): Melissa LeBlanc-Williams
"""

try:
import struct
except ImportError:
import ustruct as struct
import struct

from micropython import const
from adafruit_rgb_display.rgb import DisplaySPI

Expand Down