S-0005: Difference between revisions
Line 60: | Line 60: | ||
==How to use== | ==How to use== | ||
===For Raspberry Pi 4B=== | ===For Raspberry Pi 4B=== | ||
* Open a terminal and Download demo code from: [ https://github.com/ | * Open a terminal and Download demo code from: [ https://github.com/rm-hull/luma.examples ] | ||
<pre> | ===Installation instructions=== | ||
sudo python - | Assuming you are using a Raspberry Pi (running Debian Jessie or newer), follow the instructions to wire up your display, then from a command-line: | ||
<pre> | |||
sudo usermod -a -G i2c,spi,gpio pi | |||
sudo apt install python-dev python-pip libfreetype6-dev libjpeg-dev build-essential | |||
sudo apt install libsdl-dev libportmidi-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev | |||
</pre> | </pre> | ||
Log out and in again and clone this repository: | |||
<pre> | <pre> | ||
git clone https://github.com/rm-hull/luma.examples.git | |||
cd luma.examples | |||
</pre> | </pre> | ||
Finally, install the luma libraries using: | |||
<pre>sudo -H pip install -e . </pre> | |||
===Running the examples=== | |||
After cloning the repository, enter the examples directory and try running one of the following examples listed below. For example: | |||
<pre>python examples/3d_box.py</pre> | |||
{| | {| | ||
|[[File: | |[[File:96oledscreen4.jpg|left|500px]] | ||
|[[File: | |[[File:Oled96example.jpg|none|500px]] | ||
|} | |} | ||
* Other example Demo: | * Other example Demo: | ||
<pre>python | <pre> python animated_gif.py </pre> | ||
[[File: | [[File:Oled96exex.jpg|left|500px]] | ||
<br style="clear:both;"> | <br style="clear:both;"> | ||
===For Arduino=== | ===For Arduino=== | ||
This routine is an OLED display routine based on the arduino UNO board.<br> | This routine is an OLED display routine based on the arduino UNO board.<br> |
Revision as of 19:39, 10 December 2019
0.96 Inch OLED Module
Description
0.96 Inch OLED Module is a mini display screen with 128X64 resoluction and SSD1306 chipset.
Standard IIC communication interface pinout compatible with most MCU development board such as arduino, Raspberry Pi,C51 series etc.
The Python library to use SSD1306-based 128x64 or 128x32 pixel OLED displays with a Raspberry Pi or Beaglebone Black too.
Features
- Easy to setup
- Super Low Power Consumption
- Power Input: 3.3V
- Good compatibility: Raspberry Pi 4B/3B+/3B/2B/Zero, Beagle Bone Black and so on.
- Support IIC communication Protocol
- Super Mini size
- Color: Black & White
- Resolution: 128x64 pixels
Specifications
Display Specifications
- Display Mode: Passive Matrix
- Display Color: Monochrome (White)
- Drive Duty: 1/64 Duty
Mechanical Specifications
- Outline Drawing: According to the annexed outline drawing
- Number of Pixels: 128 × 64
- Panel Size: 24.74 × 16.9 × 1.42 (mm)
- Active Area: 21.74 × 10.86 (mm)
- Pixel Pitch: 0.17 × 0.17 (mm)
- Pixel Size: 0.15 × 0.15 (mm)
- Weight: TBD
Maximum Ratings
Gallery
Documentations
- SSD1306 Datasheet:File:SSD1306-Revision 1.0.pdf
- Mechanical Drawing:File:0.96inch Mechanical Drawing.pdf
How to use
For Raspberry Pi 4B
- Open a terminal and Download demo code from: [ https://github.com/rm-hull/luma.examples ]
Installation instructions
Assuming you are using a Raspberry Pi (running Debian Jessie or newer), follow the instructions to wire up your display, then from a command-line:
sudo usermod -a -G i2c,spi,gpio pi sudo apt install python-dev python-pip libfreetype6-dev libjpeg-dev build-essential sudo apt install libsdl-dev libportmidi-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
Log out and in again and clone this repository:
git clone https://github.com/rm-hull/luma.examples.git cd luma.examples
Finally, install the luma libraries using:
sudo -H pip install -e .
Running the examples
After cloning the repository, enter the examples directory and try running one of the following examples listed below. For example:
python examples/3d_box.py
- Other example Demo:
python animated_gif.py
For Arduino
This routine is an OLED display routine based on the arduino UNO board.
- 1. Before opening the program, put the font folder in the libraries (i.e. library) folder in the arduino root directory.
- 2. Because the routine shows a larger picture, more text, the picture and text of the mold are all stored in FLASH. So when displaying pictures or text, you need to read out the mold inside flash and then display it on the display, so the display speed is slower.
- 3. If the user wants to display what they want, they need to modify the font file in the font folder to add their own mold.
- 4. Refer to the contents of the "Model Inge Description" folder.
- 5. Because the company's word library chip is GBK code, and arduino utf-8 encoding method is different, so there is no word library display.
Download Sketch: File:OLED arduino UNO demo.zip
- 6. Unzip it and open it with Arduino IDE, select arduino UNO and COM port, press upload.
KeyWords
- 0.91 inch OLED display, oled screen, oled, Raspberry Pi 4B,