122-32000 Parallax Inc, 122-32000 Datasheet - Page 139

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Example Object: Display.spin
{{ Display.spin }}
CON
OBJ
PUB Main | Temp
Save this object as “Display.spin” in a folder of your choice; for this example we’ll use the
“C:\Source\” folder.
In this example we use two Propeller Library objects, Numbers and TV_Terminal, to convert
numeric values to strings and display them on a TV. Compile and download this example
object and connect a TV (NTSC) display to the composite output (RCA jack) on the Propeller
Demo Board. The TV display should show the following text:
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
Num
TV
Num.Init
TV.Start(12)
Temp := 900 * 45 + 401
TV.Str(string("900 * 45 + 401 = "))
TV.Str(Num.ToStr(Temp, Num#DDEC))
TV.Out(13)
TV.Str(string("In hexadecimal it's = "))
TV.Str(Num.ToStr(Temp, Num#IHEX))
TV.Out(13)
TV.Out(13)
TV.Str(string("Counting by fives:"))
TV.Out(13)
repeat Temp from 5 to 30 step 5
TV.Str(Num.ToStr(Temp, Num#DEC))
if Temp < 30
TV.Out(",")
:
:
"Numbers"
"TV_Terminal"
'Initialize Numbers
'Start TV Terminal
'Evaluate expression
'then display it and
'its result in decimal
'and in hexadecimal
'Now count by fives
Propeller Manual v1.0 · Page 139

Related parts for 122-32000