Skip to content

Commit 495a268

Browse files
committed
Bumping to 64MHz and linting
1 parent ae915b7 commit 495a268

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/rgb_display_pillow_animated_gif.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def back(self, loop=False):
6464
def load_files(self, folder):
6565
self._gif_files = [f for f in os.listdir(folder) if f[-4:] == '.gif']
6666
print("Found", self._gif_files)
67-
if len(self._gif_files) == 0:
67+
if not self._gif_files:
6868
print("No Gif files found in current folder")
6969
exit()
7070

@@ -89,9 +89,9 @@ def preload(self):
8989

9090
def play(self):
9191
self.preload()
92-
92+
9393
# Check if we have loaded any files first
94-
if len(self._gif_files) == 0:
94+
if not self._gif_files:
9595
print("There are no Gif Images to Play")
9696

9797
for frame_image in self._frames:
@@ -113,7 +113,7 @@ def run(self):
113113
self.advance(True)
114114

115115
# Config for display baudrate (default max is 24mhz):
116-
BAUDRATE = 24000000
116+
BAUDRATE = 64000000
117117

118118
# Setup SPI bus using hardware SPI:
119119
spi = board.SPI()

0 commit comments

Comments
 (0)