We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba7449b commit 37fba5fCopy full SHA for 37fba5f
1 file changed
tests/extmod_hardware/machine_i2c_target.py
@@ -41,6 +41,15 @@
41
else:
42
print("Please add support for this test on this zephyr platform.")
43
raise SystemExit
44
+elif sys.platform == "mimxrt":
45
+ if "Teensy" in sys.implementation._machine:
46
+ args_controller = {"scl": "A6", "sda": "A3"}
47
+ else:
48
+ args_controller = {"scl": "D0", "sda": "D1"}
49
+ args_target = (0,)
50
+elif sys.platform == "samd":
51
+ args_controller = {"scl": "D5", "sda": "D1"}
52
+ args_target = tuple()
53
54
print("Please add support for this test on this platform.")
55
@@ -64,7 +73,7 @@ def tearDownClass(cls):
64
73
cls.i2c_target.deinit()
65
74
66
75
def test_scan(self):
67
- self.assertEqual(self.i2c.scan(), [ADDR])
76
+ self.assertIn(ADDR, self.i2c.scan())
68
77
69
78
def test_write(self):
70
79
self.mem[:] = b"01234567"
0 commit comments