File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
tests/ports/psoc6/board_ext_hw Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def rx_complete_irq(obj):
192192###############################################################################
193193print ("\n 3. shift " )
194194
195- buf = bytearray (b"\xFF \xFF \xFF \xFF " )
195+ buf = bytearray (b"\xff \xff \xff \xff " )
196196I2S .shift (buf = buf , bits = 16 , shift = 3 )
197197print (binascii .hexlify (buf ))
198198I2S .shift (buf = buf , bits = 16 , shift = - 3 )
Original file line number Diff line number Diff line change 11### ADC Functional test
2- """ Setup description:
3- Construct a basic voltage divider with 120 ohms each resistor. Supply the ends with 3.3V and GND.
4- Available voltage values are then - 3.3V, ~1.7V, 0V.
5- Pin connections:
6- Voltage Divider circuit On Target Board
7- 3.3V end adc_pin_max
8- Mid point adc_pin_mid
9- GND end adc_pin_gnd
10- *Known issue: When connected to GND, you may not get exact 0V and this may vary board to board.
2+
3+ """Setup description:
4+ Construct a basic voltage divider with 120 ohms each resistor. Supply the ends with 3.3V and GND.
5+ Available voltage values are then - 3.3V, ~1.7V, 0V.
6+ Pin connections:
7+ Voltage Divider circuit On Target Board
8+ 3.3V end adc_pin_max
9+ Mid point adc_pin_mid
10+ GND end adc_pin_gnd
11+ *Known issue: When connected to GND, you may not get exact 0V and this may vary board to board.
1112"""
13+
1214import os
1315import time
1416from machine import ADC , ADCBlock
Original file line number Diff line number Diff line change @@ -112,14 +112,14 @@ def i2c_tests(i2c_master):
112112 i2c_slave_rcv_buf = bytearray (8 )
113113 i2c_slave .conf_receive_buffer (i2c_slave_rcv_buf )
114114
115- master_write_data = [b"\x01 \x44 \x55 \x23 " , b"\x98 \x03 \x44 \xEE " ]
115+ master_write_data = [b"\x01 \x44 \x55 \x23 " , b"\x98 \x03 \x44 \xee " ]
116116 i2c_master .writevto (slave_addr , master_write_data )
117117
118118 time .sleep_ms (100 )
119119
120120 print (
121121 "master writevto() and received by slave: " ,
122- i2c_slave_rcv_buf == b"\x01 \x44 \x55 \x23 \x98 \x03 \x44 \xEE " ,
122+ i2c_slave_rcv_buf == b"\x01 \x44 \x55 \x23 \x98 \x03 \x44 \xee " ,
123123 )
124124
125125 # 4. Master to slave read
Original file line number Diff line number Diff line change 22"""
33Setup: Connect pwm_pin to pin_in
44"""
5+
56from machine import PWM , Pin
67import os
78import time
You can’t perform that action at this time.
0 commit comments