Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed9378 committed Oct 31, 2020
1 parent 268b739 commit 721d24d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Usage Example:
import pcf8574_io

# you can use up to 8 PCF8574 boards 0x20 and 0x21 are the I2C addresses
# true will set all the pins HIGH +5v false will set them to LOW 0v
# true will set all the pins HIGH +3.3v false will set them to LOW 0v
p1 = pcf8574_io
p2 = pcf8574_io

Expand All @@ -26,7 +26,7 @@ p1.pin_mode("p0", "INPUT")
print(p1.digital_read("p0"))

# you can write and read the output pins
# use HIGH or LOW to set the pin HIGH is +5v LOW is 0v
# use HIGH or LOW to set the pin HIGH is +3.3v LOW is 0v
p1.pin_mode("p4", "OUTPUT")
p1.digital_write("p4", "HIGH")
print(p1.digital_read("p4"))
Expand Down

0 comments on commit 721d24d

Please sign in to comment.