background image

Summary of Contents for TRS-80 X-PAD GT-116

Page 1: ...Cadalocj Number 26 1196 Radio hack TRS SO caiviPUTEn PRODUCTS V J A luminal net us mi MMiiMteWiir IfcLi liitLLLiiiUJI 1 r J H I I IB I I II n IB Ml I...

Page 2: ...WARE SOLD LEASED LICENSED OR FURNISHED BY RADIO SHACK INCLUDING BUT NOT LIMITED TO ANY INTERRUPTION OF SERVICE LOSS OF BUSINESS OR ANTICIPATORY PROFITS OR CONSEQUENTIAL DAMAGES RESULTING FROM THE USE...

Page 3: ...ass B computing device pursuant to Subpart J of Part 15 of FCC Rules Only peripherals computer input output devices terminals printers etc that are certified to comply with the Class B limits may be a...

Page 4: ...rting to name just a few Besides that it s fun To use X Pad you ll need a 16K or 32K Color Computer with Extended Color BASIC Color TV And while not required it is extremely convenient to save your pr...

Page 5: ...rmission from Tandy Corporation of any portion of this manual is prohibited While reasonable efforts have been taken in the preparation of this manual to assure its accuracy Tandy Corporation assumes...

Page 6: ...enty of Room Area 21 8 Circling the Landing X Pad Circles 23 9 Brushing on the First Coat Painting 25 10 Menu or Ala Carte Menu 31 11 A Display Saved CSAVEM CLOADM 35 12 Troubleshooting and Maintenanc...

Page 7: ...Important Note Be sure your Color Computer is turned OFF before you insert or remove the X Pad s Interface Pak otherwise damage to the Color Computer or X Pad or both may occur...

Page 8: ...or compute the area of a geometric figure Other times your program might allow you to draw lines boxes circles or any other graphic display you can imagine In other words the same graphic figures you...

Page 9: ......

Page 10: ...ables communication between the X Pad and the Computer Pad which is the base of the GT 116 and which has an 8 1 2 x 11 Writing Surface Do not write on the Pad Always be sure to have a sheet of paper c...

Page 11: ...omputer and the X Pad are now ready for use Using th Pen When the Pen k on the Writing Surface or even near and you move tlie tip of the Pen around a signal which defines an X Y coordinate is sent to...

Page 12: ...PMODE Htl REM POINT PROGRAM 20 PCL5 30 SCMEN 1 1 40 GOSUB 80 50 IF S 3 THEN fl0 G0 PSET X Y i 70 GOTO 40 80 X PEEK E537G Y PEEK S5377 S PEEK f B537B j RE TURN and RUN it Take the Pen and position the...

Page 13: ...ou ll have to PEEK into these memory locations in every X Pad program you write Do you want to see what we mean If so type in this program NEW ENTEffi 10 PRINT PEEK G537S 5 20 PRINT PEEK 65377 5 30 PR...

Page 14: ...ne 30 to 30 SCREEN 1 0 and RUN the program SCREEN 1 0 changes the Screen to the two color low resolution mode of black and green Gotta Draw the Line Somewhere In Color Computer graphics every line you...

Page 15: ...Line 100 draws the line Line 110 draws the line Line 120 waits for Pen up Line 130 goes back for more data To draw a triangle box or rectangle specify a startpoint and endpoint for the first side of...

Page 16: ...n into this area a display will appear on the Screen Menu Area This area makes up the margins of the Pad Anytime the Pen moves into this area the Screen doesn t display anything but something does hap...

Page 17: ...coordinate point plotting system The range for X is to 255 and the range for Y is to 191 The upper left corner is the origin 0 0 the upper right corner is 255 0 the lower left corner is 0 191 and the...

Page 18: ...ditional capabilities in the use of the X Pad Pen Proximity provides a means of disabling data when the Pen is out of range of the Writing Surface Pen Down tells the Computer when the Pen is touching...

Page 19: ...Ks the memory address for Pen Status displays the current Pen Status on the far left side of your Screen With the program running 1 Hold the Pen vertically about 4 above the center of the Display Area...

Page 20: ...d d all of the above 3 The origin coordinate on X Pad is located in the a upper left corner b lower left corner c upper right corner d lower right corner e none of the above 4 True False You set the W...

Page 21: ......

Page 22: ...k to use but not quite as fast as a speeding bullet We ve gone through a few programs with you and perhaps you ve seen some programming trends using GOSUBs PEEKing memory addresses using SCREEN etcJ W...

Page 23: ...BASIC will display a RETURN WITHOUT GOSUB ERROR Simply RUN the program again What happens is this Line 40 goes to 170 and gets the data Line 70 locates the Pen Line 60 waits for the Pen to enter the...

Page 24: ...wn on X Pad and ends when you lift the Pen up from X Pad s surface To free form draw enter this program 10 PMODE 4 1 REM DRAWING PROGRAM 20 FCL5 30 SCREEN 1 1 40 GOSUB 120 50 IF S 3 THEN 40 B0 PSET X...

Page 25: ...done that try it again by just looking at the Screen as you write your name pretty hard to cross those t s and dot those i s Draw a four leaf clover Draw a five pointed star Draw a big dreamhouse with...

Page 26: ...e For example if length is 7 20 7 2 will be displayed on the Screen To measure length 1 Type or load from cassette and RUN the program 2 Press the Pen down where you want to begin measuring length sta...

Page 27: ...alue Line 100 figures the length Line 110 rounds the sum Line 130 waits for Pen up To measure figures that you have drawn on X Pad s paper like lines rectangles circles etc use the same procedure If y...

Page 28: ...the paper to begin tracing TRACING appears on your Screen telling you that the X Pad is hard at work figuring the area of your geometric figure The Computer calculates the area as the Pen moves rather...

Page 29: ...re only once and then lift the Pen from the paper You might want to put your ruler next to the Pen so the lines are straight and accurate 3 If you traced very close to the square s sides you should ha...

Page 30: ...e distance from the centerpoint to this point is the circle s radius The X Pad draws the circumference of the circle around the radius The radius is the distance between the centerpoint and the ci rcu...

Page 31: ...aits for Pen down Line 110 compute the circles s size Line 120 draws the circle Line 130 waits for Pen up Line 140 gets the next point Chapter 8 Checkpoint 1 True False The radius of a circle is the d...

Page 32: ...we re jumping a little ahead of ourselves but bear with us you ll like what s about to follow Whenever you want to clear the Screen just move the Pen to the bottom margin With this program you can col...

Page 33: ...cond point is specified 3 Press the Pen in the margin area that s been defined as the color you want You can see where the Pen is currently located by the position of the Cursor on the Screen only in...

Page 34: ...lor you want the box s background to be painted and press down Then press the Pen somewhere on the Display Area but outside of the boundaries of the figure The outline of the figure is still visible Y...

Page 35: ...round color green it is nearly impossible to see the green Cursor To be sure you paint the right figure move the Pen as near the figure s center as possible Last margin default The PAINT statement use...

Page 36: ...ere your Pen is currently located 4 True False PAINT keeps painting after it reaches a boundary of a figure on the Screen 5 True False PAINT uses the color of the last margin specified 6 True False Wh...

Page 37: ......

Page 38: ...to that area is executed A Menu can be located in the Display Area or Menu Area on the X Pad The following program sets up a Menu in the Display Area This Menu resembles the keyboard on a push button...

Page 39: ...yed then 2 s and then 3 s 1 2 and 3 are the Menu characters in the first row Any point within the 3 x 4 1 4 boundary of this Menu returns a value on your Screen When you go beyond the boundary of the...

Page 40: ...ther menu character INT in this line tells the Computer to look only at the whole portion the integer of the number and ignore the decimal part In lines 50 230 and 240 conditions are set up if the Pen...

Page 41: ...the row column statement in your program For example R INT Y 50 1 C INT X 50 l Here each Menu character is 50 increments wide and 50 increments long R I NT Y 1 5 1 C I NT X 20 1 This statement sets ea...

Page 42: ...display is saved it also stays on the Screen There are two commands involved with memory storage CSAVEM saving memory CLOADM loading memory The CSAVEM command stores the graphic display as a machine...

Page 43: ...creen and prompts you for a filename 4 Enter the name you want to call your file the filename must conform to standard Color Computer syntax and press ENTER The file begins saving when the cassette st...

Page 44: ...ne 180 IF Sol 5 THEN 230 sets the upper left and upper right corners ofthe margin S 15 for CSAVEM Line 190 SCREEN 0 CLS sets Screen from Graphics to Text Line 200 INPUT STORAGE FILENAME V1 SCREENFILE...

Page 45: ......

Page 46: ...move the X Pad Carefully remove the Pak from the Color Computer after you turn the power OFF Lift the X Pad making sure you are also holding the Pen and Cable to keep them from dangling Note To avoid...

Page 47: ...he slot on the right side of the Computer 3 Check to see how your Color Computer operates without the X Pad connected This can narrow the problem down to either the Color Computer or the X Pad Symptom...

Page 48: ...medium black cartridge Writing Surface 8 1 2 xll Display Surface 7 x9 Paper Size 8 1 2 xll Menu Area 8 x 10 1 2 Dimensions 75 H xl3 W xl0 75 L 19x330x273 mm Resolution 256 X axis x 192 Y axis Ambient...

Page 49: ......

Page 50: ...or right margin but 7 Pen not down X margin and proximity Pen down on X margin left or right margin 8 X rnargin Pen down and proximity Pen not within 1 of the Y margin 9 top margin Y margin and Pen do...

Page 51: ......

Page 52: ...d 1 True 3 b 2 True 3 False Chapter 3 1 Display Area and Menu Area Chapter 9 2 c 1 True 3 a 2 True 4 False 3 True 5 b 4 False 5 True Chapter 4 6 True 1 False 2 True Chapter 10 3 False 1 True 2 False...

Page 53: ......

Page 54: ...rea as well as in the Margin Area See Table 2 earlier in this manual for a description of Pen Status The Computer reads the X Pad data and status information from three memory addresses X PEEK 65376 Y...

Page 55: ......

Page 56: ...EM BOX 2 GREEN 55 REM BOX 3 YELLOW 56 REM BOX 4 BLUE 57 REM BOX 5 RED 58 REM BOX 6 BUFF 59 REM BOX 7 CYAN 60 REM BOX 8 MAGENTA 61 REM BOX 9 ORANGE 62 REM 10 REM 80 REM SOME HANDY VARIABLES 90 REM X HO...

Page 57: ...5 THEN Y 15 1072 IF X 240 THEN X 240 1074 IF Y 176 THEN Y 176 1080 GET X 15 Y 15 X 15 Y 15 V G 1090 SW 1 1100 RETURN 1110 REM ENTRY POINT FOR PUT END OF THE MOVE 1120 GOSUB 2890 1130 IF S 3 THEN 1120...

Page 58: ...LINE 2150 REM 2160 SW 0 2170 RETURN 2180 REM ENTRY FOR FIRST END POINT 2190 ON SW GOTO 2270 2200 GOSUB 2890 2210 IF S 3 THEN 2200 2220 PSET X Y 2230 X1 X Y1 Y 2240 SW 1 2250 RETURN 2260 REM ENTRY FOR...

Page 59: ...The program will operate the same except that the COPY routine will not be included 6 Type PCLS ENTER 7 RUN the program Turn up the volume on your television receiver so you can hear the tones played...

Page 60: ...rite on the Screen Press your Pen Point into the TEXT box then select a point on the Display Area and press the Pen down again Now any keys you type on the Keyboard will appear on the Screen starting...

Page 61: ...x labeled CIRCLE then specify two points in the Display area using the Pen Point The first point sets the center of the circle and the second point sets the radius of the circle If the circle is too l...

Page 62: ...d into 10 boxes so every 19 2 increments down equals 1 box Look at line 50 and suppose Y is 102 102 19 2 5 3125 The result is between 5 and 6 so we know we are in box 5 INT Y 19 2 will give just the w...

Page 63: ...3550 REM 3560 GOSUB 2870 IF S 3 THEN GOSUB 540 GOTO 3560 3570 A 10 3580 LINE X Y X 2 A Y PSET 3590 LINE X 2 A Y A X 2 Ar Y A FSET 3600 LINE X 2 A Y A 3 X 4 A Y 2 A J PSET 3610 LINE X 2 A Y A 3 U 4 A...

Page 64: ...itch is set 1 For Example the Sample Program uses S 7 to decide on a course of action From the table we can see that S 7 means that the Pen is down within 1 of one of the two side margins The Pen Swit...

Page 65: ...rns jiVB ll I ll WORTH TEXAS Uh a divi si on or TkNpY cdnrpn T o NAP IE 0NJAI HS IT zp A r w F i LiM llfiW MB VICfORiA R0An fiARC Y0AMERE fl W 2116 lifltTi mm twTEOj ymspi ff 1 NAItltitk t ILS1 0N WAD...

Reviews: