122-28029 Parallax Inc, 122-28029 Datasheet - Page 183

GUIDE STUDENT SMART SENSORS

122-28029

Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet

Specifications of 122-28029

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Chapter 5: Accelerometer Gaming Basics · Page 171
Scale and Offset
Scale and offset were introduced in Chapter 3 for managing input values from the
accelerometer. In Chapter 3, we used the
operator for scaling (multiplying) by
**
fractional values. In this example, we'll just use the
operator because a variable in the
*
next example program only needs to be multiplied by the integer value 2.
Take a look at Figure 5-3, where a graph with both positive and negative axes has been
printed in the Debug Terminal. The horizontal, or x, axis has a space between each
numeral, and the vertical, y, axis does not. In order to position the cursor in a particular
spot using the
command, we’ll need mapping between the axes printed in the
CRSRXY
Debug Terminal and the axes used by the
command.
CRSRXY
Figure 5-3: Entering and Displaying Coordinates

Related parts for 122-28029