2017-06-18 17:42:47 +08:00
<!--
---
name: OLED Bonnet
class: board
type: Display
formfactor: pHAT
manufacturer: Adafruit
description: A 128x64 display with jostick and buttons for your Pi
url: https://learn.adafruit.com/adafruit-128x64-oled-bonnet-for-raspberry-pi
github: https://github.com/adafruit/Adafruit_Python_SSD1306
buy: https://www.adafruit.com/product/3531
2017-06-22 21:41:57 +08:00
image: 'adafruit-oled-bonnet.png'
2017-06-18 17:42:47 +08:00
pincount: 40
eeprom: no
power:
2017-06-22 21:41:57 +08:00
'1':
2017-06-18 17:42:47 +08:00
ground:
'6':
'9':
'14':
'20':
'25':
'30':
'34':
'39':
pin:
'3':
mode: i2c
'5':
2017-06-22 21:41:57 +08:00
mode: i2c
'27':
name: Joystick left
'23':
name: Joystick right
'4':
name: Joystick center
'17':
name: Joystick up
'22':
name: Joystick down
'5':
name: Button A
'6':
name: Button B
2017-06-18 17:42:47 +08:00
i2c:
'0x3c':
name: Display Driver
device: ssd1306
-->
# OLED Bonnet
2017-06-22 21:41:57 +08:00
The OLED Bonnet is a simple 128x64 display for the Raspberry pi with a 5-way joystick and 2 push buttons.
2017-06-18 17:42:47 +08:00
2017-06-22 21:41:57 +08:00
The 1.3" screen is made of a 128x64 individual white OLED pixels and because the display makes its own light, no backlight is required. This reduces the power required to run the OLED and is why the display has such high contrast.
To install the necessary software, use the following commands:
2017-06-18 17:42:47 +08:00
```bash
2017-06-22 21:41:57 +08:00
sudo apt-get install git python-imaging python-smbus
2017-06-18 17:42:47 +08:00
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
cd Adafruit_Python_SSD1306
sudo python setup.py install
```