SSD1331 OLED Display (SPI)
Jump to navigation
Jump to search
Summary
OLED display module driver supporting the SSD1331 controller over SPI. Provides configuration for full-color RGB rendering, orientation, contrast, and multiple drawing modes (text, graphics, images).
Description
The SSD1331 OLED Display (SPI) component allows integration of color OLED screens using the SSD1331 controller. It supports SPI communication with configurable bus speed, RGB/BGR color ordering, and rendering of text, images, and graphical primitives.
Diagram:
Properties
- SPISpeed – SPI bus speed (default 8000000).
- Is BGR – Boolean flag for BGR color ordering instead of RGB.
- Background Color – Screen background color.
- Contrast – Display contrast adjustment.
- Height – Display height in pixels.
- Mirror – Horizontal/Vertical flip (boolean).
- Orientation – Screen orientation (goUp, goDown, goLeft, goRight).
- Power On – Turns display power on at initialization (boolean).
- Pre-charge Period – Pre-charge timing (Phase1, Phase2).
- Text – Default text properties for rendering.
- Type – Display driver type (odtSSD1331).
- Use Charge Pump – Enables charge pump for power supply (boolean).
- Width – Display width in pixels.
Elements
- Text – Displays text using configurable font and style.
- Render Event – Triggers external rendering events.
- Draw Bitmap – Renders bitmap images.
- Fill Screen – Fills the screen with a chosen color.
- Scroll – Scrolls text or graphics across the display.
- Graphics – General graphic primitives rendering.
- Draw Scene – Renders predefined graphical scenes.
- Image – Displays stored image data.
- Pixels – Direct control over individual pixels.
- Lines – Draws straight lines between two points.
- Shapes – Draws basic shapes (rectangles, circles, etc.).
Pins
Input Pins
- In (text) – Text input for display rendering.
- Elements – When display elements are added, they create their own input and clock pins automatically.
- Refresh – Clock input to refresh/redraw the display.
Output Pins
- Reset – Digital reset control for the display.
- SPI – SPI communication bus connection.
- Chip Select – Digital chip select line for display addressing.
- Data/Command – Digital control pin to switch between data and command mode.
Categories
- File:TArduinoDisplayCategory.png Category Display – Screen and display components.
- File:TArduinoSPICategory.png Category SPI – SPI communication devices.