Skip to content

Commit

Permalink
edit readme and example imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickael committed Sep 14, 2020
1 parent 82373fd commit de93ae8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ or
```
```python

from GreenPonik_Altas_Scientific_i2c.GreenPonik_Altas_Scientific_OEM_i2c import (
ECI2c,
PHI2c,
)
from GreenPonik_Altas_Scientific_i2c.ECI2c import ECI2c
from GreenPonik_Altas_Scientific_i2c.PHI2c import PHI2c
```

# Examples
Expand All @@ -51,7 +49,7 @@ from GreenPonik_Altas_Scientific_i2c.GreenPonik_Altas_Scientific_OEM_i2c import
works with EC circuit https://www.atlas-scientific.com/circuits/conductivity-oem-circuit/<br>

```python
from GreenPonik_Altas_Scientific_OEM_i2c.GreenPonik_ECI2c import ECI2c
from GreenPonik_Altas_Scientific_OEM_i2c.ECI2c import ECI2c

if __name__ == "__main__":
try:
Expand All @@ -76,7 +74,7 @@ go to [ec example](examples/read_ec.py)
works with pH circuit https://www.atlas-scientific.com/circuits/ph-oem-circuit/<br>

```python
from GreenPonik_Altas_Scientific_OEM_i2c.GreenPonik_PHI2c import PHI2c
from GreenPonik_Altas_Scientific_OEM_i2c.PHI2c import PHI2c

if __name__ == "__main__":
try:
Expand All @@ -85,7 +83,6 @@ if __name__ == "__main__":
bus=1,
address=PHI2c.ADDR_OEM_TXT_TO_HEXA['PH'],
moduletype="PH",
name="PH"
)
print(ph_i2c.get_device_info())
print(ph_i2c.get_read())
Expand Down
2 changes: 1 addition & 1 deletion examples/read_ec.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from GreenPonik_Altas_Scientific_OEM_i2c.GreenPonik_ECI2c import ECI2c
from GreenPonik_Altas_Scientific_OEM_i2c.ECI2c import ECI2c

if __name__ == "__main__":
try:
Expand Down
3 changes: 1 addition & 2 deletions examples/read_ph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from GreenPonik_Altas_Scientific_OEM_i2c.GreenPonik_PHI2c import PHI2c
from GreenPonik_Altas_Scientific_OEM_i2c.PHI2c import PHI2c

if __name__ == "__main__":
try:
Expand All @@ -7,7 +7,6 @@
bus=1,
address=PHI2c.ADDR_EZO_TXT_TO_HEXA['PH'],
moduletype="PH",
name="PH"
)
print(ph_i2c.get_device_info())
print(ph_i2c.get_read())
Expand Down

0 comments on commit de93ae8

Please sign in to comment.