File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 id = 0
1717 out_pin = 4
1818 in_pin = 5
19+ elif sys .platform == "mimxrt" :
20+ if "Teensy" in sys .implementation ._machine :
21+ id = 0
22+ out_pin = "D2"
23+ in_pin = "D3"
1924else :
2025 print ("Please add support for this test on this platform." )
2126 raise SystemExit
@@ -43,6 +48,7 @@ def tearDown(self):
4348 def assertCounter (self , value ):
4449 self .assertEqual (self .counter .value (), value )
4550
51+ @unittest .skipIf (sys .platform == "mimxrt" , "cannot read back the pin" )
4652 def test_connections (self ):
4753 # Test the hardware connections are correct. If this test fails, all tests will fail.
4854 out_pin (1 )
@@ -73,6 +79,7 @@ def test_change_directions(self):
7379 toggle (25 )
7480 self .assertCounter (75 )
7581
82+ @unittest .skipIf (sys .platform == "mimxrt" , "FALLING edge not supported" )
7683 def test_count_falling (self ):
7784 self .counter .init (in_pin , direction = Counter .UP , edge = Counter .FALLING )
7885 toggle (20 )
Original file line number Diff line number Diff line change 77uart_loopback_kwargs = {}
88
99spi_standalone_args_list = [()]
10+
11+ encoder_loopback_id = 0
12+ encoder_loopback_out_pins = ("D0" , "D2" )
13+ encoder_loopback_in_pins = ("D1" , "D3" )
You can’t perform that action at this time.
0 commit comments