- Scratch Based Default Extensions
- Artificial Intelligence
- Innovative Extensions
- Machine Learning Environment
- Quarky
- Quarky Intellio I2C Communication
- Quarky Advance Sensors Extension
- Quarky Connect
- Display (Quarky)
- Quarky (Main)
- Robot (Quarky)
- Sensors (Quarky)
- Speaker (Quarky)
- Quarky Ultimate Robots
- Quarky Expansion Board
- Mars Rover
- Humanoid (Quarky)
- Quadruped (Quarky)
- IoT House (Quarky)
- Quarky Mecanum
- Quarky Robotic Arm
- Dabble
- Quarky Advance Line Following
LED (Arduino Alvik)
Extension Description
Control the onboard RGB LEDs of Arduino Alvik, switch them ON or OFF, and display different colours using PictoBlox blocks and Python functions.
-
Available in: Block Coding, Python Coding
-
Mode: Stage Mode, Upload Mode
-
WiFi Required: No
-
Compatible Hardware in Block Coding: Arduino Alvik
-
Compatible Hardware in Python: Arduino Alvik
-
Object Declaration in Python: alvik = ArduinoAlvik()
Introduction
The LED (Arduino Alvik) blocks allow users to control the robot’s two onboard RGB LEDs directly from PictoBlox. These LEDs can display different colours and provide visual feedback during robotics activities.
Using these blocks, you can:
- Turn the left or right RGB LED ON or OFF.
- Set an RGB LED to a selected colour.
- Display visual feedback for different robot actions.
- Create colour-based signals, alerts, and indicators.
These blocks are useful for creating visual notifications, interactive robotics projects, and colour-based feedback systems.

Connecting Arduino Alvik with PictoBlox
Before using the LED (Arduino Alvik) blocks, connect your robot to PictoBlox using USB or Bluetooth.
Follow the step-by-step instructions in the Arduino Alvik Connection Guide.
Read More
PictoBlox Blocks
Python Functions
Sets the RGB output of the selected LED. To switch the selected LED off, the equivalent all-zero RGB values can be used where supported.
Syntax: set_color(1, 1, 1)
This method sets the selected LED to a specified colour using red, green, and blue components.
Syntax: set_color(1, 0, 0)
All articles loaded
No more articles to load
Table of Contents
