Skip to content

Commit f8d35c9

Browse files
authored
Merge pull request #28 from adafruit/dhalbert-ustruct
Remove obsolete references to ustruct
2 parents 45d1462 + e2fff63 commit f8d35c9

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

adafruit_ra8875/ra8875.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@
2727
"""
2828

2929
# imports
30+
import struct
3031
import time
32+
3133
from digitalio import Direction
3234
from adafruit_bus_device import spi_device
3335
import adafruit_ra8875.registers as reg
3436

35-
try:
36-
import struct
37-
except ImportError:
38-
import ustruct as struct
39-
4037
__version__ = "0.0.0-auto.0"
4138
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RA8875.git"
4239

examples/ra8875_bmptest.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22
# SPDX-License-Identifier: MIT
33

44
# Quick bitmap test of RA8875 with Feather M4
5+
import struct
6+
57
import busio
68
import digitalio
79
import board
810

911
from adafruit_ra8875 import ra8875
1012
from adafruit_ra8875.ra8875 import color565
1113

12-
try:
13-
import struct
14-
except ImportError:
15-
import ustruct as struct
16-
1714
WHITE = color565(255, 255, 255)
1815

1916
# Configuration for CS and RST pins:

0 commit comments

Comments
 (0)