Skip to content

Commit

Permalink
Merge pull request #100 from adafruit/dhalbert-ustruct
Browse files Browse the repository at this point in the history
Remove obsolete references to ustruct
  • Loading branch information
TheKitty authored Dec 23, 2021
2 parents a802c9d + 600c443 commit 492474a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
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

0 comments on commit 492474a

Please sign in to comment.