Selected Task
Create Pin Variables (Block Codes)
In Progress

Create variables for the LED and button pins using Block Codes.

Requirements
  • Use two Set Variable blocks: ledPin = 2 and buttonPin = 6.
  • Use Number blocks for the pin values.
  • Use the variables in later blocks instead of raw numbers.
Task Complete When
  • Both pin numbers are stored in Block Codes variables.
Mission Completion Rule
The mission is passed when required tasks are complete, the simulation matches the expected response, and the code compiles without errors.
Score: 0/10
Generate Arduino code from blocks.
Simulation
Run time: 00:00.000
100%
TRIOE Simulation
Welcome to the TRIOE simulation workspace
Build, wire, and test Arduino projects in one place. Start a guided Block Codes walkthrough now, continue your current lab, or explore demos.
Go to demos
Leave this page and open the demo selector.