File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
PyPortal_Floppy_with_Display Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ def get_files(base):
30
30
file_names .append ((filetext , True ))
31
31
else :
32
32
file_names .append ((filetext , False ))
33
+ j = 0
33
34
return filenames
34
35
35
36
def get_touch (screen ):
@@ -152,11 +153,11 @@ def get_touch(screen):
152
153
else :
153
154
# Blank out more and extra icon spaces
154
155
moresprite [0 ] = BLANK
155
- if PAGE > 1 : # Need to display the less than touch sprite
156
+ if PAGE > 1 : # Need to display the less than touch sprite
156
157
lesssprite [0 ] = LEFT
157
158
else :
158
159
lesssprite [0 ] = BLANK
159
-
160
+
160
161
# Time to check for user touch of screen (BLOCKING)
161
162
touch_x = get_touch (ts )
162
163
print ("Touch Registered " )
@@ -189,7 +190,7 @@ def get_touch(screen):
189
190
else :
190
191
currentfile += 1 # Increment file counter
191
192
spot += 1 # Increment icon space counter
192
- if spot == PAGEMAXFILES : # Last page ended with
193
+ if spot == PAGEMAXFILES : # Last page ended with
193
194
print ("hit" )
194
195
# calculate next icon location
195
196
if spot % ICONSACROSS : # not at end of icon row
@@ -204,4 +205,3 @@ def get_touch(screen):
204
205
sprites [i ][0 ] = BLANK
205
206
labels [i ].text = " "
206
207
# End while
207
-
You can’t perform that action at this time.
0 commit comments