pinout.vvzero.com/draft/overlay/adafruit-oled-bonnet.md

66 lines
1.4 KiB
Markdown
Raw Normal View History

2017-06-22 21:45:53 +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
image: 'adafruit-oled-bonnet.png'
pincount: 40
eeprom: no
power:
'1':
ground:
'6':
'9':
'14':
'20':
'25':
'30':
'34':
'39':
pin:
'3':
mode: i2c
'5':
mode: i2c
2017-06-22 21:59:51 +08:00
'7':
name: Joystick center
'13':
2017-06-22 21:45:53 +08:00
name: Joystick left
2017-06-22 21:59:51 +08:00
'16':
2017-06-22 21:45:53 +08:00
name: Joystick right
2017-06-22 21:59:51 +08:00
'11':
2017-06-22 21:45:53 +08:00
name: Joystick up
2017-06-22 21:59:51 +08:00
'15':
2017-06-22 21:45:53 +08:00
name: Joystick down
2017-06-22 21:59:51 +08:00
'29':
2017-06-22 21:45:53 +08:00
name: Button A
2017-06-22 21:59:51 +08:00
'31':
2017-06-22 21:45:53 +08:00
name: Button B
i2c:
'0x3c':
name: Display Driver
device: ssd1306
-->
# OLED Bonnet
The OLED Bonnet is a simple 128x64 display for the Raspberry pi with a 5-way joystick and 2 push buttons.
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:
```bash
sudo apt-get install git python-imaging python-smbus
2017-06-22 22:05:38 +08:00
git clone https://github.com/adafruit/Adafruit_Python_SSD1306
2017-06-22 21:45:53 +08:00
cd Adafruit_Python_SSD1306
sudo python setup.py install
```