Skip to content

Commit 5718dcb

Browse files
committed
animation bug when displaying just one file
1 parent 99aa41e commit 5718dcb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ If the parameters are omitted or not properly formatted, the program will prompt
202202

203203
**Playimage.py [filename[,filename2,filename3,etc,[seconds_to_display]]]** - (Circuitpython only, requires the adafruit_imageload library installed in the /lib folder) program to display .bmp, .jpg, .gif (incl animaged) or .png image files. If multiple comma
204204
seperated files are entered a continous slide show is displayed with each image being
205-
displayed for `seconds_to_display` seconds. If the program is loaded from PyDOS it attempts to determine the appropriate display configuration from the PyDOS environment, otherwise several display options are supported and selected depending on the existence of BOARD.Display or locally installed display libraries.
205+
displayed for `seconds_to_display` seconds. Wildcard's in the format of *.xxx can be used
206+
as an input filename. If the program is loaded from PyDOS it attempts to determine the appropriate display configuration from the PyDOS environment, otherwise several display options are supported and selected depending on the existence of BOARD.Display or locally installed display libraries.
206207

207208
**reboot.py** - performs a soft reboot (Micropython requires a Ctrl-D to complete)
208209

cpython/playimage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def playimage(passedIn=""):
226226
cmnd = ""
227227
# Display repeatedly.
228228
stop = adafruit_ticks.ticks_add(adafruit_ticks.ticks_ms(),int(dispseconds*1000))
229-
while adafruit_ticks.ticks_less(adafruit_ticks.ticks_ms(),stop) or dispseconds==-1:
229+
while adafruit_ticks.ticks_less(adafruit_ticks.ticks_ms(),stop) or singleimage:
230230

231231
if Pydos_ui.serial_bytes_available():
232232
cmnd = Pydos_ui.read_keyboard(1)

0 commit comments

Comments
 (0)