Skip to content

Commit d04ce1f

Browse files
committed
fix method rename error
1 parent 6587a12 commit d04ce1f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/edgepi/adc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ edgepi_adc.start_conversions()
4040
4141
# perform 10 voltage reads
4242
for _ in range(10):
43-
out = edgepi_adc.read_adc()
43+
out = edgepi_adc.read_voltage()
4444
print(out)
4545
4646
# stop automatic conversions

src/edgepi/dac/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ edgepi_dac = EdgePiDAC()
1616
edgepi_dac.write_voltage(1, 3.3)
1717
1818
# read last voltage written to pin number 1
19-
edgepi_dac.read_adc(1)
19+
edgepi_dac.read_voltage(1)
2020
```
2121
---
2222
## Using DAC Module

src/test_edgepi/integration_tests/test_adc/test_adc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def test_voltage_continuous(adc_num, ch, adc):
814814
)
815815
adc.start_conversions(adc_num)
816816
for _ in range(10):
817-
out = adc.read_adc(adc_num)
817+
out = adc.read_voltage(adc_num)
818818
assert out != 0
819819
finally:
820820
adc.stop_conversions(adc_num)

0 commit comments

Comments
 (0)