File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 99# A range of sleep periods (1 to 512ms) are tested. The total nominal sleep time
1010# is 10.23 seconds, but on most ports this will finish much earlier as interrupts
1111# happen before each timeout expires.
12+ import sys
13+
1214try :
1315 from machine import lightsleep , Pin
1416except ImportError :
1517 print ("SKIP" )
1618 raise SystemExit
1719
18- from sys import stdout , platform
20+ # RP2350 currently fails this test, needs further investigation.
21+ if "RP2350" in sys .implementation ._machine :
22+ print ("SKIP" )
23+ raise SystemExit
1924
2025try :
2126 led = Pin (Pin .board .LED , Pin .OUT )
2530for n in range (100 ):
2631 if led :
2732 led .toggle ()
28- stdout .write (chr (ord ("a" ) + (n % 26 )))
33+ sys . stdout .write (chr (ord ("a" ) + (n % 26 )))
2934 lightsleep (2 ** (n % 10 ))
3035
3136print ("\n DONE" )
Original file line number Diff line number Diff line change 1+ import sys
12import machine
23import time
34
1718# Verification uses the average idle time, as individual iterations will always
1819# have outliers due to interrupts, scheduler, etc.
1920
21+ # RP2350 currently fails this test because machine.idle() resumes immediately.
22+ if "RP2350" in sys .implementation ._machine :
23+ print ("SKIP" )
24+ raise SystemExit
25+
2026ITERATIONS = 500
2127total = 0
2228
You can’t perform that action at this time.
0 commit comments