🏭 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

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

πŸ–₯️ Display & Feedback

#BlockWhat it doesDropdown optionsWhat the options mean
7display.scroll("Hello World!")Scrolls text across a screenβ€”Great for OLED or micro:bit displays β€” shows messages or alerts
8display.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