{
    "ok": true,
    "data": {
        "title": "0.91_OLED_(English)",
        "rev_id": 709,
        "updated_at": "2015-07-21T03:17:02+00:00",
        "chunk_count": 13,
        "chunks": [
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "",
                "chunk_index": 0,
                "content": "# 0.91 OLED (English)",
                "char_count": 21,
                "token_estimate": 6
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "Description",
                "chunk_index": 1,
                "content": "This tiny OLED display module is specially design for raspberry Pi,the module use less of raspberry pi's pins and make little spacing occupying,The micro control chip ssd1306 which communicate with Raapberry Pi via I2C interface ,and whose work voltage is 3.3V. So that this OLED can be used on any Raspberry Pi board <img src=\"091_top.JPG\" title=\"091_top.JPG\" width=\"600\" alt=\"091_top.JPG\" \/>",
                "char_count": 393,
                "token_estimate": 99
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "Technical Details",
                "chunk_index": 2,
                "content": "|       Type        |            Value             |\n|:-----------------:|:----------------------------:|\n|       Name        | RPI_0.91'OLED_Display Module |\n| screen resolution |            128×32            |\n|    screen type    |             0.91             |\n|   diplay scale    |         22.38×5.58MM         |\n|   module scale    |      35.1x15.12x11.8mm       |\n|    Pixel Pitch    |          0.17×0.17           |\n|    Pixel Size     |          0.15×0.15           |\n|   work voltage    |             3.3V             |",
                "char_count": 529,
                "token_estimate": 133
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "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\nmounted on Raspberry Pi\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\nin the night\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": 601,
                "token_estimate": 151
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "product scale",
                "chunk_index": 4,
                "content": "<img src=\"0.91oled_dimention2.png\" title=\"0.91oled_dimention2.png\" width=\"1000\" alt=\"0.91oled_dimention2.png\" \/>",
                "char_count": 112,
                "token_estimate": 28
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "schematic",
                "chunk_index": 5,
                "content": "<img src=\"Pic2.png\" title=\"Pic2.png\" width=\"1000\" alt=\"Pic2.png\" \/>",
                "char_count": 67,
                "token_estimate": 17
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "Learn",
                "chunk_index": 6,
                "content": "-   If it's the first time for you to use Raspberry Pi, please make sure the I2C interface is enabled. This page will show you how to enable the I2C interface. <http:\/\/www.52pi.net\/forum.php?mod=viewthread&tid=1363&highlight=rtc>\n\n<!-- -->\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<!-- -->\n\n-   Type `sudo apt-get install build-essential git-core libi2c-dev i2c-tools lm-sensors` to install necessary component\n\n![](Test1.png \"Test1.png\")\n\n-   If the steps above are done,next type`sudo vim.tiny \/etc\/modules`to modify modules file just like the following\n\n<!-- -->\n\n    i2c-bcm2708\n    i2c-dev\n\n![](Test3.png \"Test3.png\")\n\n![](Test4.png \"Test4.png\")\n\n-   sudo make安装驱动程序\n\n![](Test5.png \"Test5.png\")\n\n-   安装成功后打开example文件夹 输入make指令编译示例程序，编译成功后发现，当前文件夹下已成功生成可执行文件ssd1306_demo\n\n![](Test6.png \"Test6.png\")\n\n-   输入sudo .\/ssd1306_demo执行可以看到0.91'OLED模块已经成功点亮\n\n![](Test7.png \"Test7.png\")\n<img src=\"Test9.JPG\" title=\"Test9.JPG\" width=\"900\" alt=\"Test9.JPG\" \/>",
                "char_count": 1055,
                "token_estimate": 345
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "示例代码说明",
                "chunk_index": 7,
                "content": "#include \"OLEDType_SSD1306.h\"  \/\/include driver file\n    #include \"OLED_GFX.h\"\n    #include \"OLED_SSD1306.h\"\n\nOLED_SSD1306 display;                                                              \/\/ instantiation  OLED_SSD1306\n\nconst unsigned char rpi_2[128] = { \/* 0X00,0X01,0X1A,0X00,0X20,0X00, *\/           \/\/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": 1017,
                "token_estimate": 255
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "示例代码说明",
                "chunk_index": 8,
                "content": "unsigned char rpi_3[128] = { \/* 0X00,0X01,0X1A,0X00,0X20,0X00, *\/               \/\/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": 791,
                "token_estimate": 198
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "示例代码说明",
                "chunk_index": 9,
                "content": "int main(int argc, char **argv)\n    {\n        if ( !display.init(OLED_I2C_RESET,OLED_OLED_I2C_128x32) )       \/\/initiate the I2C interface screen ,otherwise ,exit\n            exit(EXIT_FAILURE);\n        display.begin();                                                \/\/start display\n        display.clearDisplay();                                         \/\/clear screen\n        display.drawBitmap(0,0,rpi_2,32,32,1);                          \/\/picture display location X:0,Y:0,picture file :RPI_2,picture high:32,picture with:32,font:black\n        display.drawBitmap(96,0,rpi_2,32,32,1);                         \/\/picture display location X:96,Y:0,picture file :RPI_2,picture high:32,picture with:32,font:black\n        display.drawRect(0,0,128,32,0);                                 \/\/display white\n        display.setTextSize(1);                                         \/\/set font size one\n        display.setTextColor(WHITE);                                    \/\/set font color white\n        display.setCursor(29,0);                                        \/\/set character display location X:29,:Y:0\n        display.",
                "char_count": 1117,
                "token_estimate": 280
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "示例代码说明",
                "chunk_index": 10,
                "content": "print(\"Hello World\");                                   \/\/set display content Hello World\n        display.setCursor(29,16);                                       \/\/set ddisplay location X:29,Y:16\n        display.print(\"www.52pi.cn\");                                   \/\/set display ccontent www.52pi.cn\n        display.display();                                              \/\/start display\n            usleep(10000);                                                  \/\/delay",
                "char_count": 474,
                "token_estimate": 119
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "示例代码说明",
                "chunk_index": 11,
                "content": "}",
                "char_count": 1,
                "token_estimate": 1
            },
            {
                "title": "0.91_OLED_(English)",
                "rev_id": 709,
                "heading_path": "附件",
                "chunk_index": 12,
                "content": "[1306-0.91-CODE.zip](1306-0.91-CODE.zip \"wikilink\")\n[SSD1306-Revision 1.0.pdf](SSD1306-Revision_1.0.pdf \"wikilink\") [:Category:名称](:Category:名称 \"wikilink\")\n如对此页的规则或教程有意见者，可到[此网页或是在](Minecraft_Wiki_talk:wiki编辑手册 \"wikilink\")[管理员Powup333的讨论页留言](User_talk:Powup333 \"wikilink\")。",
                "char_count": 273,
                "token_estimate": 117
            }
        ]
    }
}