Blocks Area
OLED Screen
πΊ OLED Screen – Your “Mini TV”
What it is: Blocks for more advanced graphic displays.
What it does: Displays graphics and images on advanced screens.
Example: Draw a heart or display large numbers.
π It’s the robot’s artistic display.

Β
π§© Fun Guide to OLED Display Blocks (Clu-blocks Pro)
πΌοΈ Important! OLED blocks let your robot draw pictures, scroll text, and show data on a bright little screen. Itβs like giving your robot a digital face or dashboard!
π§ Setup & Configuration
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 1 | I2C setup i2c_extend SCL: 2 SDA: 0 frequency: 100000 | Sets up I2C communication | β | Needed before using the OLED β SCL/SDA are data pins |
| 2 | count with I2C i2c_extend oled setupbased128x64 Addr: 0x3c driver SSD1306 | Initializes the OLED screen | β | 128×64 is the screen size, SSD1306 is the driver chip |
ποΈ Displaying Text
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 3 | oled display string "Clu-Bots" x: 0 y: 0 | Shows text at a position | β | You choose where the text appears |
| 4 | oled display string "Clu-Bots" x: 0 y: 0 size: 2 space: 1 middle alignment: yes | Shows styled text | β | You can change size, spacing, and alignment |
| 5 | oled scroll string "Clu-Bots" x: 0 y: 0 size: 2 space: 1 middle alignment: yes | Scrolls text across the screen | β | Great for announcements or animations |
| 6 | oled scroll string "Clu-Bots" x: 0 y: 0 size: 2 space: 1 interval(ms): 5 | Scrolls text with timing | β | Controls how fast the text scrolls |
| 7 | oled show string by frame "Clu-Bots" x: 0 y: 0 size: 2 interval(ms): 50 | Shows text one frame at a time | β | Creates a typing or reveal effect |
π¨ Drawing & Graphics
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 8 | oled Display image Built-in picture Heart x: 0 y: 0 | Shows a built-in icon | Heart, Happy, Sad, Rock, Paper, etc. | Choose from fun emojis and symbols |
| 9 | oled draw line x1: 0 y1: 0 to x2: 50 y2: 50 | Draws a line | draw, erase | You can draw or erase shapes |
| 10 | oled draw vertical line x: 0 y: 0 length: 20 | Draws a vertical line | vertical, horizontal | Choose direction of the line |
| 11 | oled draw rectangle x: 20 y: 20 width: 20 height: 15 | Draws a hollow rectangle | draw, erase | Great for boxes or borders |
| 12 | oled draw rectangle x: 20 y: 20 width: 20 height: 15 fill: yes | Draws a solid rectangle | hollow, solid | Choose fill style |
| 13 | oled draw progress UP translation x: 1 unit | Moves an image or shape | UP, DOWN, LEFT, RIGHT | Great for animations or sliders |
π‘ Display Control
| # | Block | What it does | Dropdown options | What the options mean |
|---|---|---|---|---|
| 14 | oled set display on On | Turns the screen on or off | On, Off | Controls power or visibility |
| 15 | oled clear display | Clears everything from the screen | β | Use this before updating or switching messages |
π§ Quick Tips for Students
- Use setup blocks first β your OLED wonβt work without I2C and driver setup.
- Use built-in pictures for fun icons β like emotions or game symbols.
- Use scroll and frame text for cool effects β like typing or marquee.
- Use draw tools to make shapes, borders, or animations.
- Use clear + display control to refresh or hide the screen β perfect for transitions.