M5Stack Mini OLED Unit
File:TArduinoM5StackMiniOLED.png
Summary
M5Stack Mini OLED Unit is a compact monochrome display module based on the SSD1306/SSD1315 controller with I2C interface. It allows rendering of text, images, and graphics with configurable orientation and contrast.
Description
The M5Stack Mini OLED Unit provides a small but versatile OLED screen using I2C communication. It supports adjustable contrast, mirroring, orientation, and multiple rendering elements such as text, images, and graphics. This unit is ideal for compact UIs, sensor readouts, and status displays in M5Stack-based projects.
Diagram:
Categories
- File:TArduinoDisplayCategory.png Category Display – Screen and display components.
- File:TArduinoI2CCategory.png Category I2C – I2C communication devices.
- File:TArduinoM5StackCategory.png Category M5Stack – M5Stack-compatible modules.
Properties
- Address – I2C address of the OLED display.
- Background Color – Screen background color (tmcBlack, tmcWhite).
- Contrast – Display contrast adjustment.
- Elements – Configurable rendering elements (Text, Bitmap, Graphics, etc.).
- 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.
- Use Charge Pump – Enables charge pump for power supply (boolean).
Elements
- Text – Displays text using configurable font and style.
- Render Event – Triggers external rendering events.
- Draw Bitmap – Renders monochrome 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
- Out (I2C) – I2C communication output to the OLED module.
- Reset – (Optional) Digital reset control, depending on module configuration.