Skip to content

Commit

Permalink
lv_utils: Default to soft-timer on all ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-anl committed Oct 23, 2024
1 parent 2cb8755 commit a7f4379
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions lib/lv_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,10 @@
except:
Timer = False

# Try to determine default timer id

default_timer_id = 0
if sys.platform == 'pyboard':
# stm32 only supports SW timer -1
default_timer_id = -1

if sys.platform == 'rp2':
# rp2 only supports SW timer -1
default_timer_id = -1
# By default use soft timer
default_timer_id = -1

# Try importing asyncio, if available

try:
import asyncio
asyncio_available = True
Expand Down

0 comments on commit a7f4379

Please sign in to comment.