Lesson 7: CPX as a Mouse
Table of Contents
- Lesson 7.1: Making a Programmable Mouse
- Lesson 7.2: Accelerometer Mouse
- Project Examples
- Next Lesson
In Lesson 7 of our CPX series, we will learn how to use the CPX as a programmable mouse. We’ll begin by making a discrete mouse that shifts the mouse cursor by small amounts with button A and B presses before building a more complex accelerometer-based mouse with continuous input.
Lesson 7.1: Making a Programmable Mouse
In this lesson, we will show how to use the CPX as a programmable mouse.
Lesson 7.1 Code
Lesson 7.2: Accelerometer Mouse
In this lesson, we will show how to use the CPX’s built-in accelerometer to make smooth, continuous mouse input.
Lesson 7.2 Code
Project Examples
All project examples below provide tutorials with example MakeCode code.
- Mouse Painter, John Park
- Make it a Mouse, Anne Barela
Next Lesson
In the next lesson, we’ll learn how to hook up external sensors like potentiometers using analog input on the CPX.