File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
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-
1412try :
1513 from machine import lightsleep , Pin
1614except ImportError :
1715 print ("SKIP" )
1816 raise SystemExit
1917
20- # RP2350 currently fails this test, needs further investigation.
21- if "RP2350" in sys .implementation ._machine :
22- print ("SKIP" )
23- raise SystemExit
18+ from sys import stdout , platform
2419
2520try :
2621 led = Pin (Pin .board .LED , Pin .OUT )
3025for n in range (100 ):
3126 if led :
3227 led .toggle ()
33- sys . stdout .write (chr (ord ("a" ) + (n % 26 )))
28+ stdout .write (chr (ord ("a" ) + (n % 26 )))
3429 lightsleep (2 ** (n % 10 ))
3530
3631print ("\n DONE" )
Original file line number Diff line number Diff line change 1- import sys
21import machine
32import time
43
1817# Verification uses the average idle time, as individual iterations will always
1918# have outliers due to interrupts, scheduler, etc.
2019
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-
2620ITERATIONS = 500
2721total = 0
2822
You can’t perform that action at this time.
0 commit comments