We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec175e commit 3f87b22Copy full SHA for 3f87b22
README.rst
@@ -20,6 +20,8 @@ Currently there is only one such class: ``I2CPCF8574Interface``.
20
21
.. code-block:: python
22
23
+ import board
24
+
25
from lcd.lcd import LCD
26
from lcd.i2c_pcf8574_interface import I2CPCF8574Interface
27
@@ -28,7 +30,7 @@ Currently there is only one such class: ``I2CPCF8574Interface``.
28
30
# Talk to the LCD at I2C address 0x27.
29
31
# The number of rows and columns defaults to 4x20, so those
32
# arguments could be omitted in this case.
- lcd = LCD(I2CPCF8574Interface(0x27), num_rows=4, num_cols=20)
33
+ lcd = LCD(I2CPCF8574Interface(board.I2C(), 0x27), num_rows=4, num_cols=20)
34
35
lcd.print("abc ")
36
lcd.print("This is quite long and will wrap onto the next line automatically.")
0 commit comments