]> vault307.fbx.one Git - RPI-PICO-I2C-LCD.git/blobdiff - README.md
Use fenced code in README so that copy/paste from GitHub includes line breaks
[RPI-PICO-I2C-LCD.git] / README.md
index e324201f915702b1cb0c60ac39fab13348bf7e77..cf832abf70d985e09579ac7385ffe0f528f55c63 100644 (file)
--- a/README.md
+++ b/README.md
@@ -3,6 +3,8 @@ This is a project which adapts code from another user to allow usage of the PCF8
 
 Credit: https://github.com/dhylands/python_lcd/tree/master/lcd mostly to Dave Hylands for the basic api and lcd driver code.
 
 
 Credit: https://github.com/dhylands/python_lcd/tree/master/lcd mostly to Dave Hylands for the basic api and lcd driver code.
 
+Project: Check it out for a full step-by-setp guide on Instructables: https://www.instructables.com/RPI-Pico-I2C-LCD-Control/ 
+
 This is code adaptded for micropython and the Raspberry Pi PICO specifically.
 
 Usage: 
 This is code adaptded for micropython and the Raspberry Pi PICO specifically.
 
 Usage: 
@@ -23,11 +25,13 @@ Setup Changes:
 - Make sure the top address is set correctly!
 Use this small program to scan for I2C devices:
 
 - Make sure the top address is set correctly!
 Use this small program to scan for I2C devices:
 
+```python
 import machine
 sda=machine.Pin(0)
 scl=machine.Pin(1)
 i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000)
 print(i2c.scan())
 import machine
 sda=machine.Pin(0)
 scl=machine.Pin(1)
 i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000)
 print(i2c.scan())
+```
 
 - Once you get an address through the console (REPL), this will be in decimal and not hex. You can convert the decimal to hex or simply put a decimal address in the setup.
 in my case, the decimal addr. was 39 which converts to 0x27 in hex.
 
 - Once you get an address through the console (REPL), this will be in decimal and not hex. You can convert the decimal to hex or simply put a decimal address in the setup.
 in my case, the decimal addr. was 39 which converts to 0x27 in hex.