🏭 Factory – Your “Expert Workshop”

What it is: Special blocks for optimizing and organizing large projects.

What it does: Advanced functions for when you’re a master.

Example: Configure the system, save memory, improve performance.

πŸ‘‰ It’s the robot’s maintenance workshop.

Β 

🧩 Fun Guide to Factory Blocks (Clu-blocks Pro)

🏭 Important! Factory blocks are your robot’s wildcards β€” they let you build custom logic, simulate missing features, and create reusable tools. Use them when no other block fits!


πŸ› οΈ General Purpose Blocks

# Block What it does Dropdown options What the options mean
1 import module Adds a Python module to your code β€” Use this to bring in extra tools β€” like math, time, or machine
2 from machine import * Imports all hardware functions β€” Gives access to pins, timers, PWM, etc. β€” great for low-level control
3 my_function Creates a custom function β€” You name it and define what it does β€” like a mini-program
4 my_function with: x Adds an input to your function β€” Makes your function flexible β€” like passing a speed or message
5 test = Test() Creates an object from a class β€” Use this to build reusable tools β€” like a motor controller or sensor reader
6 test.callMethod x Calls a method on an object β€” Triggers a specific action β€” like move(), read(), or reset()

πŸ–₯️ Display & Feedback

# Block What it does Dropdown options What the options mean
7 display.scroll("Hello World!") Scrolls text across a screen β€” Great for OLED or micro:bit displays β€” shows messages or alerts
8 display.scroll("Hello Clu-Bots!") Scrolls a custom message β€” Use this to show status, names, or fun greetings

🧠 Quick Tips for Students

  • Use factory blocks when you need something custom β€” like a new sensor or behavior.
  • Use functions to organize your code β€” no need to repeat the same logic.
  • Use objects and methods to simulate missing blocks β€” like building your own motor class.
  • Use scroll display to give feedback β€” perfect for debugging or showing results.
  • Combine with other categories to extend their power β€” like adding a factory block to a timer or sensor.
On this page