Episode Video
Episode 1 covers IC10 fundamentals with a lever controlling a light.
Watch Episode 1 on YouTube
IC10 Learning Series
This companion page covers your first IC10 script structure and the core mental model for a simple device control loop.
Episode 1 covers IC10 fundamentals with a lever controlling a light.
Watch Episode 1 on YouTube
# Define Devices - d0 -> d5 # Define Variables - r0 -> r15 # Main Loop Start: j Start
# Define Devices - d0 -> d5 alias lever d0 alias light d1 # Define Variables - r0 -> r15 alias open r0 # Main Loop Start: # Read the value of Open to the open variable l open lever Open s light On open j Start
l open lever Open
Loads data from a device into a register. Here it reads the lever's Open value and stores it in open (alias of r0).
s light On open
Stores/writes a value from a register to a device property. Here it writes open into the light's On property.
j Start
Jumps back to the Start label, creating a continuous control loop.
Start.