{
    "ok": true,
    "data": {
        "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
        "rev_id": 1558,
        "updated_at": "2016-09-23T06:36:46+00:00",
        "chunk_count": 10,
        "chunks": [
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "",
                "chunk_index": 0,
                "content": "# RPI 16x2 LCD+Keypad Kit SKU:Z-0019",
                "char_count": 36,
                "token_estimate": 9
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "Description",
                "chunk_index": 1,
                "content": "It's a LCD display which can show two lines and 16 characters on it. and it easy to use a blue and white 16x2 Character LCD.\nIt's based on I2c protocol and it can communicate with your Pi with less wire.\nWith this in mind, we wanted to make it easier for people to get these LCD into their projects so we devised a Pi plate that lets you control a 16x2 Character LCD,\nup to 3 led pins(rgb led) AND 5 keypad pins using only the two I2C pins on the R-Pi!\nThe best part is you don't really lose those two pins either, since you can stick i2c-based sensors, RTCs, etc and have them share the I2C bus.\nThis is a super slick way to add a display without all the wiring hassle. This pi plate is perfect for when you want to build a stand-alone project with its own user interface.\nThe 4 directional buttons plus select button allows basic control without having to attach a bulky computer.\nThe plate is designed for both Revision 1 and Revision 2 Raspberry Pi's. It uses the I2C (SDA\/SCL) pins.\nTo keep them from shorting against the metal, a piece of electrical tape must be placed onto the USB ports.\nAttention:due to the new version of MCP23017, may not support the extended pull-up resistor on the IO.",
                "char_count": 1198,
                "token_estimate": 300
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "Description",
                "chunk_index": 2,
                "content": "and LCD16x2+Keypad not support for Pi 3.",
                "char_count": 40,
                "token_estimate": 10
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "Description",
                "chunk_index": 3,
                "content": "------------------------------------------------------------------------",
                "char_count": 72,
                "token_estimate": 18
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "Feature",
                "chunk_index": 4,
                "content": "-   Display construction: 16 Characters \\* 2 Lines\n-   Dimensions: 5.74cm × 8.24cm\n-   Comes with a 16x2 Blue & White LCD\n-   Plug and play with any Raspberry Pi (Do Not fit for RPI2\/RPI3)\n-   Uses only the I2C (SDA\/SCL) pins\n-   This board\/chip uses I2C 7-bit address 0x20\n\n------------------------------------------------------------------------",
                "char_count": 347,
                "token_estimate": 87
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "Presentation",
                "chunk_index": 5,
                "content": "<img src=\"_160201.jpg\" title=\"_160201.jpg\" width=\"300\" alt=\"_160201.jpg\" \/> <img src=\"_160202.jpg\" title=\"_160202.jpg\" width=\"300\" alt=\"_160202.jpg\" \/> <img src=\"_160203.jpg\" title=\"_160203.jpg\" width=\"300\" alt=\"_160203.jpg\" \/>\n----",
                "char_count": 232,
                "token_estimate": 58
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "Package includes",
                "chunk_index": 6,
                "content": "-   1x RPI 16x2 LCD + Keypad Kit\n\n------------------------------------------------------------------------",
                "char_count": 106,
                "token_estimate": 27
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "How to use",
                "chunk_index": 7,
                "content": "-   Setup your Pi with I2C tool.\n\n`sudo apt-get install python-smbus`\n`sudo apt-get install i2c-tools`\n`sudo i2cdetect -y 0 (if you are using a version 1 Raspberry Pi)`\n`sudo i2cdetect -y 1 (if you are using a version 2 Raspberry Pi)`\n\\*i2c-tools isn't strictly required, but it's a useful package since you can use it to scan for any I2C or SMBus devices connected to your board.\nIf you know something is connected, but you don't know it's 7-bit I2C address, this library has a great little tool to help you find it.\n<img src=\"I2c.jpg\" title=\"I2c.jpg\" width=\"300\" alt=\"I2c.jpg\" \/>\n\\*Install git-core and get wiringPi library.\n`sudo apt-get install git-core`\n`git clone `[`git:\/\/git.drogon.net\/wiringPi`](git:\/\/git.drogon.net\/wiringPi)\n`cd wiringPi`\n`.\/build`\n\\*Check wiringPi function and version:\n`gpio -v`\n`gpio readall`\n<img src=\"Gpio.jpg\" title=\"Gpio.jpg\" width=\"300\" alt=\"Gpio.jpg\" \/>\n\\*Enable I2C interface in your Pi by editing \/etc\/modules file and add two lines as following:\n`sudo nano \/etc\/modules`\n\ni2c-bcm2708\n    i2c-dev\n\n\\* Delete blacklist in \/etc\/modprobe.d\/raspi-blacklist.conf, you can just use \"#\" to comment it.\n`sudo nano \/etc\/modprobe.d\/raspi-blacklist.conf`",
                "char_count": 1182,
                "token_estimate": 296
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "How to use",
                "chunk_index": 8,
                "content": "blacklist spi-bcm2708\n    blacklist i2c-bcm2708\n\n\\*Finally, reboot your Pi.\n\\*Create a file called whatever you want but with .c as prefix:\n`sudo vim.tiny mylcd1602.c`\n\n#include <stdio.h>\n    #include <wiringPi.h>\n    #include <mcp23017.h>\n    #include <lcd.h>\n\nint main()\n    {\n            int display,i,count;\n            wiringPiSetup();\n            mcp23017Setup (100, 0x20);\n            printf (\"Raspberry Pi - MCP23017 Test\\n\");\n            for(i=0;i<16;i++)\n              pinMode(100+i,OUTPUT);\n            digitalWrite(107,1);\n            digitalWrite(101,0);\n            display=lcdInit(2,16,4,100,102,103,104,105,106,0,0,0,0);\n            lcdHome(display);\n            lcdClear(display);\n            lcdPosition(display,0,0);\n            lcdPuts(display,\"Hello World\");\n            while(1)\n            {\n                    lcdPosition(display,0,1);\n                    lcdPrintf(display,\"%d\",count++);\n                    delay(300);\n                    printf(\"lcd1602\\n\");\n            }\n    }",
                "char_count": 1006,
                "token_estimate": 252
            },
            {
                "title": "RPI_16x2_LCD+Keypad_Kit_SKU:Z-0019",
                "rev_id": 1558,
                "heading_path": "How to use",
                "chunk_index": 9,
                "content": "\\*Compile it with gcc, and run it.\n`sudo gcc mylcd1602.c \/home\/pi\/wiringPi\/devLib\/lcd.o -lwiringPi -o mylcd1602`\n`sudo .\/mylcd1602`\n<img src=\"_160203.jpg\" title=\"_160203.jpg\" width=\"300\" alt=\"_160203.jpg\" \/>\n----",
                "char_count": 212,
                "token_estimate": 53
            }
        ]
    }
}