Changing Lights

Learn how to make the Code Cube™ display multiple images.

Grades 3-12 15 min Resource by:

In this lesson, students take their next step in creating code they can wear! The Changing Lights lesson shows students how they can use coding blocks to switch between multiple images on the Code Cube matrix. After students complete this task, they are challenged to explore how they can apply their learning to ELA, SEL, math, and science activities.

Learning Objectives

  • Learn how to make the Code Cube switch between multiple images using the pause for – seconds block.
  • ELA: Orient the reader by establishing a situation and introducing a narrator and/or characters.
  • SEL: Through self-awareness, identify emotions.
  • Math: Recognize a line of symmetry for a two-dimensional figure as a line across the figure such that the figure can be folded along the line into matching parts.
  • Science: Develop models to describe that organisms have unique and diverse life cycles, but all have birth, growth, reproductions, and death in common.

What You’ll Need



  • Computational thinking
  • Creativity
  • Measuring time

Let’s create at least two images that will appear on the display! Students can follow the sample code provided in the student pages and can also plan out their design using the student worksheet. After they have completed the lesson, students can choose to further their coding prowess by completing the ELA, SEL, math, or science activities provided.

  • What images did you create with your Code Cube?
  • What was the hardest part about creating this code?
  • Why did you choose the images you coded?

For Students

  • In what ways besides how it was used in this lesson could you use the Code Cube?
  • What other designs would you have liked to create?
  • What are some ways that you could use your design to have a positive effect on the world?

For Teachers

  • Additional challenge activities are available for students who want to test out their newly acquired coding skills. If students feel like they need more coding experience before attempting a challenge activity, have them complete more lessons.

For more information on Code Cube, visit Plus, Pitsco Education would love to see your Code Cube classroom reactions. Follow Pitsco Education on Instagram, Facebook, and Twitter and tag them using #CodeCube.