{
    "ok": true,
    "data": {
        "title": "0.96_OLED(English)",
        "rev_id": 538,
        "updated_at": "2015-07-14T02:59:27+00:00",
        "chunk_count": 14,
        "chunks": [
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "",
                "chunk_index": 0,
                "content": "# 0.96 OLED(English)",
                "char_count": 20,
                "token_estimate": 5
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "Description",
                "chunk_index": 1,
                "content": "This RPI 0.96'OLED display has 128\\*64 individual blue OLED pixels,each one is turned on or off by the controller chip.the display scale is 23.7\\*12.8(mm),and it's so tiny and delicate.Due to OLED pixel's special brightness,the display makes its own light ,no backlight is required ,and that make this display fantastic and low power cost <img src=\"0.96OLED_top.jpg\" title=\"0.96OLED_top.jpg\" width=\"600\" alt=\"0.96OLED_top.jpg\" \/>",
                "char_count": 429,
                "token_estimate": 108
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "Technical Details",
                "chunk_index": 2,
                "content": "|                Type                 |            Value             |\n|:-----------------------------------:|:----------------------------:|\n| align=\"center\" scope=\"row\"4 \\| Name | RPI_0.96'OLED_Display module |\n|          resolution ratio           |            128×64            |\n|             screen type             |          0.96'OLED           |\n|            control chip             |           SSD1306            |\n|            module scale             |      36.5x29.7x11.9(mm)      |\n|             Pixel Pitch             |          0.17×0.17           |\n|             Pixel Size              |          0.15×0.15           |\n|            work voltage             |              5V              |",
                "char_count": 709,
                "token_estimate": 178
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "Overview",
                "chunk_index": 3,
                "content": "<img src=\"p14.JPG\" title=\"p14.JPG\" width=\"330\" alt=\"p14.JPG\" \/><img src=\"p13.JPG\" title=\"p13.JPG\" width=\"330\" alt=\"p13.JPG\" \/><img src=\"p15.JPG\" title=\"p15.JPG\" width=\"330\" alt=\"p15.JPG\" \/>\n\n安装于树莓派端\n\n<img src=\"p5.JPG\" title=\"p5.JPG\" width=\"330\" alt=\"p5.JPG\" \/><img src=\"p4.JPG\" title=\"p4.JPG\" width=\"330\" alt=\"p4.JPG\" \/><img src=\"p2.JPG\" title=\"p2.JPG\" width=\"330\" alt=\"p2.JPG\" \/>\n\n夜晚下的表现\n\n<img src=\"p12.JPG\" title=\"p12.JPG\" width=\"330\" alt=\"p12.JPG\" \/><img src=\"p10.JPG\" title=\"p10.JPG\" width=\"320\" alt=\"p10.JPG\" \/><img src=\"p11.JPG\" title=\"p11.JPG\" width=\"310\" alt=\"p11.JPG\" \/>",
                "char_count": 579,
                "token_estimate": 161
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "OLED Module Scale",
                "chunk_index": 4,
                "content": "<img src=\"0.96show2.png\" title=\"0.96show2.png\" width=\"1000\" alt=\"0.96show2.png\" \/>",
                "char_count": 82,
                "token_estimate": 21
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "Schematic",
                "chunk_index": 5,
                "content": "<img src=\"0.96show1.png\" title=\"0.96show1.png\" width=\"1000\" alt=\"0.96show1.png\" \/>",
                "char_count": 82,
                "token_estimate": 21
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "Learn",
                "chunk_index": 6,
                "content": "-   If it's the first time for you to use this module, please make sure the SPI interface is enabled. The following will show you how to enable the SPI interface.\n\ntype `sudo raspi-config`\n<img src=\"0.96tech2.png\" title=\"0.96tech2.png\" width=\"600\" alt=\"0.96tech2.png\" \/>\n\n-   In this page select number 8 colum \\[Advanced options\\] ,and then select \\[SPI\\] column and yes to enable SPI Interface,and the Raspberry Pi will restart\n\n<img src=\"0.96tech4.png\" title=\"0.96tech4.png\" width=\"600\" alt=\"0.96tech4.png\" \/>\n\n-   Download OLED's [ssd1306 driver](#tech1 \"wikilink\"),If you are done download the device driver,extract them copy and past to \/home\/Pi folder\n\n<img src=\"0.96tech1.png\" title=\"0.96tech1.png\" width=\"600\" alt=\"0.96tech1.png\" \/>\n\n-   Type `sudo apt-get install build-essential git-core libi2c-dev i2c-tools lm-sensors` to install necessary component\n\n<img src=\"0.96tech6.png\" title=\"0.96tech6.png\" width=\"600\" alt=\"0.96tech6.png\" \/>\n\n-   If you are done install these softwares,type `cd 1306-0.96-CODE`and get into the driver folder,then type `sudo make`to compile the code",
                "char_count": 1086,
                "token_estimate": 272
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "Learn",
                "chunk_index": 7,
                "content": "<figure>\n<img src=\"0.96tech7.png\" title=\"0.96tech7.png\" width=\"600\" alt=\"0.96tech7.png\" \/>\n<figcaption aria-hidden=\"true\">0.96tech7.png<\/figcaption>\n<\/figure>\n\n-   `cd examples`and type `make`,compile the demo code\n\n<figure>\n<img src=\"0.96tech8.png\" title=\"0.96tech8.png\" width=\"600\" alt=\"0.96tech8.png\" \/>\n<figcaption aria-hidden=\"true\">0.96tech8.png<\/figcaption>\n<\/figure>\n\n-   After the compiling examples code is done you will find a executable file, type `sudo.\/ssd1306_demo` and the OLED display is on work\n\n<img src=\"0.96tech10.png\" title=\"0.96tech10.png\" width=\"600\" alt=\"0.96tech10.png\" \/>\n<img src=\"Test9.JPG\" title=\"Test9.JPG\" width=\"900\" alt=\"Test9.JPG\" \/>",
                "char_count": 668,
                "token_estimate": 167
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "demo code",
                "chunk_index": 8,
                "content": "#include \"OLEDType_SSD1306.h\"                                                                     \/\/include driver file\n    #include \"OLED_GFX.h\"\n    #include \"OLED_SSD1306.h\"\n    OLED_SSD1306 display;                                                                            \/\/instantiate OLED_SSD1306 Object\n\nconst unsigned char rpi_2[128] = { \/* 0X00,0X01,0X1A,0X00,0X20,0X00, *\/                          \/\/the binary file of picture\n    0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X07,0XC1,0XF0,0X00,0X18,0X32,0X06,0X00,\n    0X10,0X0C,0X02,0X00,0X11,0X0C,0X02,0X00,0X10,0X4C,0X84,0X00,0X08,0X2D,0X04,0X00,\n    0X0C,0X1E,0X08,0X00,0X06,0X3F,0X10,0X00,0X03,0XE1,0XF0,0X00,0X04,0X40,0X18,0X00,\n    0X08,0XC0,0X88,0X00,0X09,0XFF,0XE4,0X00,0X0F,0X1C,0X34,0X00,0X1E,0X0C,0X1E,0X00,\n    0X24,0X0C,0X12,0X00,0X24,0X0C,0X01,0X00,0X24,0X0C,0X11,0X00,0X26,0X1E,0X19,0X00\n    0X2F,0XE1,0XFB,0X00,0X1B,0XC0,0XE6,0X00,0X10,0XC0,0XC6,0X00,0X10,0XC0,0X84,0X00,\n    0X08,0X40,0X84,0X00,0X08,0X73,0X0C,0X00,0X06,0X7F,0X98,0X00,0X01,0XC0,0XE0,0X00,\n    0X00,0XC0,0XC0,0X00,0X00,0X33,0X00,0X00,0X00,0X0C,0X00,0X00,0X00,0X00,0X00,0X00,\n    };",
                "char_count": 1123,
                "token_estimate": 281
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "demo code",
                "chunk_index": 9,
                "content": "unsigned char rpi_3[128] = { \/* 0X00,0X01,0X1A,0X00,0X20,0X00, *\/                                   \/\/the binary file of picture\n    0XFF,0XFF,0XFF,0XC0,0XFF,0XFF,0XFF,0XC0,0XF8,0X3E,0X0F,0XC0,0XE7,0XCD,0XF9,0XC0,\n    0XEF,0XFB,0XFD,0XC0,0XEE,0XF3,0XFD,0XC0,0XEF,0XB3,0X7B,0XC0,0XF7,0XD2,0XFB,0XC0,\n    0XFF,0XE1,0XFF,0XC0,0XFD,0XC0,0XEF,0XC0,0XFC,0X1E,0X0F,0XC0,0XFB,0XBF,0XE7,0XC0,\n    0XF7,0X3F,0X77,0XC0,0XF6,0X00,0X1B,0XC0,0XF0,0XE3,0XCB,0XC0,0XE1,0XF3,0XE1,0XC0,\n    0XDB,0XF7,0XFD,0XC0,0XDB,0XF3,0XFE,0XC0,0XDB,0XF3,0XEE,0XC0,0XD9,0XE1,0XE6,0XC0,\n    0XD0,0X1E,0X04,0XC0,0XE4,0X3F,0X19,0XC0,0XEF,0X3F,0X39,0XC0,0XFF,0XBF,0X7B,0XC0,\n    0XF7,0XBF,0X7B,0XC0,0XF7,0X8C,0XF3,0XC0,0XF9,0X80,0X67,0XC0,0XFE,0X3F,0X1F,0XC0,\n    0XFF,0X3F,0X3F,0XC0,0XFF,0XDC,0XFF,0XC0,0XFF,0XF3,0XFF,0XC0,0XFF,0XFF,0XFF,0XC0,\n    };",
                "char_count": 815,
                "token_estimate": 204
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "demo code",
                "chunk_index": 10,
                "content": "int main(int argc, char **argv)\n    {\n        if ( !display.init(OLED_SPI_DC,OLED_SPI_RESET,OLED_SPI_CS0,OLED_OLED_SPI_128x64) )    \/\/initiate the OLED display\n            exit(EXIT_FAILURE);\n        display.begin();                                                                      \/\/start to display\n        display.clearDisplay();                                                               \/\/clear screen\n        display.drawBitmap(0,20,rpi_3,32,32,1);                                               \/\/set the original location X:0,Y:20,picture :RPI_3,length :32,width:32,color black\n        display.drawBitmap(32,20,rpi_2,32,32,1);                                              \/\/set the original location X:32,Y:20,picture :RPI_2,length :32,width:32,color black\n        display.drawBitmap(64,20,rpi_3,32,32,1);                                              \/\/set the original location X:64,Y:20,picture :RPI_3,length :32,width:32,color black\n            display.drawBitmap(96,20,rpi_2,32,32,1);                                              \/\/set the original location X:96,Y:20,picture :RPI_2,length :32,width:32,color black\n            display.",
                "char_count": 1153,
                "token_estimate": 289
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "demo code",
                "chunk_index": 11,
                "content": "setTextSize(1);                                                               \/\/set Text size 1\n        display.setTextColor(WHITE);                                                          \/\/set Text color white\n        display.setCursor(29,0);                                                              \/\/set Text location X:29,:Y:0\n        display.print(\"Hello World\");                                                         \/\/set the Text content Hello World\n        display.setCursor(29,8);                                                             \/\/set Text location X:29,:Y:8\n        display.print(\"www.52pi.cn\");                                                         \/\/set Text content www.52pi.cn\n        display.display();                                                                    \/\/display  above picture\n            usleep(10000);                                                                        \/\/delay",
                "char_count": 938,
                "token_estimate": 235
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "demo code",
                "chunk_index": 12,
                "content": "}",
                "char_count": 1,
                "token_estimate": 1
            },
            {
                "title": "0.96_OLED(English)",
                "rev_id": 538,
                "heading_path": "Attention",
                "chunk_index": 13,
                "content": "[1306-0.96-CODE.zip](Media:1306-0.96-CODE.zip \"wikilink\")\n[Media:SSD1306-Revision 1.0.pdf](Media:SSD1306-Revision_1.0.pdf \"wikilink\")\n如对此页的规则或教程有意见者，可到[此网页或是在](Minecraft_Wiki_talk:wiki编辑手册 \"wikilink\")[管理员Powup333的讨论页留言](User_talk:Powup333 \"wikilink\")。",
                "char_count": 251,
                "token_estimate": 107
            }
        ]
    }
}