All JavaScript
connect calls are asynchronous — remember to use await inside an async function. Python calls are synchronous and can be used directly.Blocks
LED Block — outputs colored light
LED Block — outputs colored light
The LED block lets you display any RGB color and control brightness. Use it for visual feedback, status indicators, or creative lighting effects.Connect: plug the LED block into your SAM hub or pair it over Bluetooth, then reference it by the name
'led'.- JavaScript
- Python
Button Block — detects press and release
Button Block — detects press and release
DC Motor Block — spins a wheel or motor
DC Motor Block — spins a wheel or motor
The DC motor block drives a continuous rotation motor. You can set its speed and direction independently, making it ideal for wheeled robots and conveyor-belt projects.Connect: pair the DC motor block and reference it by
'dcMotor' (JavaScript) or 'dc_motor' (Python).- JavaScript
- Python
Servo Block — rotates to a precise angle
Servo Block — rotates to a precise angle
The servo block moves to an exact angular position between 0° and 180°. Use it for robotic arms, steering mechanisms, or any project that needs controlled positional movement.Connect: pair the servo block and reference it by the name
'servo'.- JavaScript
- Python
Light Sensor Block — measures ambient light
Light Sensor Block — measures ambient light
The light sensor block reads the brightness of the surrounding environment. You can poll it for a single reading or register a callback that fires whenever the value changes.Connect: pair the light sensor block and reference it by
'lightSensor' (JavaScript) or 'light_sensor' (Python).- JavaScript
- Python
Buzzer Block — plays tones and melodies
Buzzer Block — plays tones and melodies
The buzzer block generates audio tones. You can specify a musical note name and duration, or supply a raw frequency in hertz for full control over the sound.Connect: pair the buzzer block and reference it by the name
'buzzer'.- JavaScript
- Python