122-28029 Parallax Inc, 122-28029 Datasheet - Page 303
![GUIDE STUDENT SMART SENSORS](/photos/8/99/89971/mfg_122-28029_sml.jpg)
122-28029
Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
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
- Current page: 303 of 340
- Download datasheet (5Mb)
' -----[ Subroutines - Disp_Cust_Char ]---------------------------------------
' This subroutine displays a custom character.
' be set to either Line0 or Line1, and the cursor variable can be set
' to a value between 0 and 15.
' LCD's custom characters and should be set to a value between 0 and 7.
Disp_Cust_Char:
Your Turn - Graphical Two-Axis Tilt Display
Indicating tilt with the TwoAxisBarDisplay.bs2 involves
the accelerometer's x and y axis measurements. It also requires scaling and offset to fit
the accelerometer measurements into a vertical scale of 31 and a horizontal scale of 17.
The horizontal scale also has to be reversed. Figure 7-5 shows how the accelerometer's x
and y axes relate to the LCD's horizontal and vertical axes. Note that that the direction of
the positive y-axis points away from the direction that values increase on the LCD's
horizontal axis. Whenever the scaled y-axis value is 16, the display should show 0, and
whenever the scaled y-axis value is 0, the display should show 16. The way to correct
this is to use a command that subtracts the scaled y-axis value from 16. Essentially, this
boils down to
SELECT cursor
RETURN
SEROUT LcdPin, T9600,
RETURN
CASE 0 TO 7
CASE 8
CASE 9 TO 16
ENDSELECT
GOSUB Disp_Cust_Char
cursor = 7
GOSUB Disp_Cust_Char
cursor = 8
GOSUB Disp_Cust_Char
cursor = cursor - 1
GOSUB Disp_Cust_Char
cursor = cursor + 1
[line + cursor, custChar]
cursor
= 16 − (scaled y value).
The custChar variable selects one of the
Chapter 7: LCD Bar Graphs for Distance and Tilt · Page 291
' Print custom character
' Cursor 0 to 7, no changes
' Cursor 8, display at 7 & 8
' Cursor 9 to 16, display 1 left
The line variable can
PULSIN
commands to acquire
Related parts for 122-28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![122-27400](/photos/8/99/89964/mfg_122-27400_tmb.jpg)
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![122-28176](/photos/8/99/89965/mfg_122-28176_tmb.jpg)
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![122-32000](/photos/8/99/89977/mfg_122-32000_tmb.jpg)
Part Number:
Description:
MANUAL PROPELLER
Manufacturer:
Parallax Inc
Datasheet:
![HW-FLYLEADS](/photos/8/95/89575/hw-flyleads_tmb.jpg)
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
![HW-USB-FLYLEADS-G](/photos/8/95/89577/hw-usb-flyleads-g_tmb.jpg)
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
![HW-USB-II-G](/photos/8/95/89581/hw-usb-ii-g_tmb.jpg)
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
![HW-CRII-PM-ACC-G](/photos/8/98/89837/hw-crii-pm-acc-g_tmb.jpg)
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: