> For the complete documentation index, see [llms.txt](https://cavedu.gitbook.io/linkit-7697/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cavedu.gitbook.io/linkit-7697/linkit-7697-arduinoide/zhou-bian-yuan-jian-lian-jie-jiao-xue/0.96-cun-oled-xian-shi-mo-zu-ssd1308z.md).

# 0.96 吋 OLED 顯示模組 (SSD1308Z)

0.96 吋 OLED 顯示模組為相容於 Grove 4-pin I2C 介面的 128x64 點陣式單色螢幕。相較於 LCD，OLED 螢幕具有高亮度、高對比、寬視角、低功耗等優點。詳細的規格資訊，請參考[官方 WiKi](http://wiki.seeed.cc/Grove-OLED_Display_0.96inch/) 連結。&#x20;

欲了解下載及安裝驅動程式的方法，可參閱下列連結：

* [如何安裝驅動程式](https://cavedu.gitbook.io/linkit-7697/linkit-7697-arduino-ide-kai-fa-zhi-nan/kai-fa-tao-jian-yu-kuo-chong-ban/grove-starter-kit)
* [驅動程式的 GitHub Repository](https://github.com/MediaTek-Labs/linkit-7697-peripheral-drivers-for-arduino)

驅動程式安裝完成後，依照下列操作步驟使用此模組：

### 設置與執行 <a href="#groveoleddisplay0.96ssd1308z-she-zhi-yu-zhi-hang" id="groveoleddisplay0.96ssd1308z-she-zhi-yu-zhi-hang"></a>

1. 將 OLED 模組與 LinkIt 7697 擴充板的 I2C 接口相連。
2. 選取 Arduino IDE 的 **File / Examples / OLED\_Display\_128X64-master / OLED\_Z\_Display\_Driver\_Test\_Suite** 選單。

執行成功後，會看見 OLED 螢幕上顯示各種不同 demo 範例。

### 補充資料 <a href="#groveoleddisplay0.96ssd1308z-bu-chong-zi-liao" id="groveoleddisplay0.96ssd1308z-bu-chong-zi-liao"></a>

若開發者直接使用模組製造商提供的驅動程式原始碼：

* 0.96" OLED [驅動程式](https://github.com/Seeed-Studio/OLED_Display_128X64)

可依照下列步驟修改，使之移植至 LinkIt 7697 執行：

1. 在函式庫目錄開啟 **SeeedOLED.cpp** 檔案。
2. 將第 **28** 行的程式碼註解掉：

   ```
   #include "Wire.h" 
   #include "SeeedOLED.h" 
    
   //#include <avr/pgmspace.h> 

   // 8x8 Font ASCII 32 - 127 Implemented
   ```
3. 儲存檔案。
4. 接著開啟 **OLED\_Z\_Display\_Driver\_Test\_Suite.ino** 並將第 **3** 行註解掉：

   ```
   #include <Wire.h> 
   #include <SeeedOLED.h> 
   //#include <avr/pgmspace.h>
   ```
5. 儲存檔案後即完成移植。
