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

#BlockWhat it doesDropdown optionsWhat the options mean
1I2C setup i2c_extend SCL: 2 SDA: 0 frequency: 100000Sets up I2C communicationβ€”Needed before using the OLED β€” SCL/SDA are data pins
2count with I2C i2c_extend oled setupbased128x64 Addr: 0x3c driver SSD1306Initializes the OLED screenβ€”128×64 is the screen size, SSD1306 is the driver chip

πŸ–‹οΈ Displaying Text

#BlockWhat it doesDropdown optionsWhat the options mean
3oled display string "Clu-Bots" x: 0 y: 0Shows text at a positionβ€”You choose where the text appears
4oled display string "Clu-Bots" x: 0 y: 0 size: 2 space: 1 middle alignment: yesShows styled textβ€”You can change size, spacing, and alignment
5oled scroll string "Clu-Bots" x: 0 y: 0 size: 2 space: 1 middle alignment: yesScrolls text across the screenβ€”Great for announcements or animations
6oled scroll string "Clu-Bots" x: 0 y: 0 size: 2 space: 1 interval(ms): 5Scrolls text with timingβ€”Controls how fast the text scrolls
7oled show string by frame "Clu-Bots" x: 0 y: 0 size: 2 interval(ms): 50Shows text one frame at a timeβ€”Creates a typing or reveal effect

🎨 Drawing & Graphics

#BlockWhat it doesDropdown optionsWhat the options mean
8oled Display image Built-in picture Heart x: 0 y: 0Shows a built-in iconHeart, Happy, Sad, Rock, Paper, etc.Choose from fun emojis and symbols
9oled draw line x1: 0 y1: 0 to x2: 50 y2: 50Draws a linedraw, eraseYou can draw or erase shapes
10oled draw vertical line x: 0 y: 0 length: 20Draws a vertical linevertical, horizontalChoose direction of the line
11oled draw rectangle x: 20 y: 20 width: 20 height: 15Draws a hollow rectangledraw, eraseGreat for boxes or borders
12oled draw rectangle x: 20 y: 20 width: 20 height: 15 fill: yesDraws a solid rectanglehollow, solidChoose fill style
13oled draw progress UP translation x: 1 unitMoves an image or shapeUP, DOWN, LEFT, RIGHTGreat for animations or sliders

πŸ’‘ Display Control

#BlockWhat it doesDropdown optionsWhat the options mean
14oled set display on OnTurns the screen on or offOn, OffControls power or visibility
15oled clear displayClears 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.
On this page