File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 19
19
20
20
SPI_SUPPORTED_DEVICES = [
21
21
# "PSLab vMOCK", # Uncomment after adding recording json files.
22
- "PSLab V6" ,
22
+ "PSLab V6\n " ,
23
23
]
24
24
25
25
WRITE_DATA8 = 0b10100101
Original file line number Diff line number Diff line change 2
2
3
3
When integration testing, the PSLab's logic analyzer is used to verify the
4
4
function of the I2C bus. Before running the integration tests, connect:
5
- TxD2->LA1
6
- RxD2->SQ1
5
+ TxD2->LA1 | PGD2 -> LA1 (for v5)
6
+ RxD2->SQ1 | PGC2 -> SQ1 (for v5)
7
7
"""
8
8
9
9
import pytest
13
13
from pslab .instrument .waveform_generator import PWMGenerator
14
14
from pslab .serial_handler import SerialHandler , MockHandler
15
15
16
- SPI_SUPPORTED_DEVICES = [
17
- # "PSLab vMOCK", # Uncomment after adding recording json files.
18
- "PSLab V6" ,
19
- ]
20
-
21
16
WRITE_DATA = 0x55
22
17
TXD2 = "LA1"
23
18
RXD2 = "SQ1"
32
27
33
28
@pytest .fixture
34
29
def uart (handler : SerialHandler ) -> UART :
35
- if handler .version not in SPI_SUPPORTED_DEVICES :
36
- pytest .skip ("UART2 not supported by this device." )
37
30
handler ._logging = True
38
31
return UART (device = handler )
39
32
You can’t perform that action at this time.
0 commit comments