
Miscelaneous questions
#41
Posted 31 July 2003 - 06:37 PM
I check the interface and it seems to be OK (i made it on a "protoboard", a project small board). I try to send and receive data, but nearly instantaneous an error appear on the calculator ;(
I hope that we can define the error.
#42
Posted 31 July 2003 - 11:42 PM
1)I with a shorcut on the cable interface (i verify it with hyperterminal and its ok)
2)With an elevate voltage on the calculator's input(i check that and its OK)
3)With the PC, calculator and the interface power on, disconnecting the 2.5mm plug of the calculator.
I think that the third option could damage the calc., i dont remember if i the calc. was off when i disconnect it of the interfae.

#43
Posted 01 August 2003 - 04:06 PM
#44
Posted 01 August 2003 - 07:24 PM
"A video buffer is divided in "pages", each page is a screen, so in this calc you cvan werite on 8pages or 8 screen simultanously and show threw the screen the page you want"
This is the way to make greyscale on TC? By example, if i want to put a black dot on the screen and one in greyscale i need to do:
setPix(1,1,1,1)
setPix(1,1,2,1)
setPix(1,1,3,1) ;for the most black dot
and:
setPix(8,2,1,1) ;for a less black dot
????
#45
Posted 02 August 2003 - 03:32 PM
You have to activate the special interruption.
Db-lib bases on 0xdb interruption. You can download this library from Graph100 site.
I asked for some informations in Grayscale topic, so you can check it.
0xdb interruption makes page-flipping between graphics segments (int db-lib they are called SEG1 and SEG3).
And there are only three available colours:
- white (no pixel on the segments)
- gray (pixel drown only in one of the segments)
- black (drown in both flipping segments)
It is in french, but I understood it

#46
Posted 02 August 2003 - 06:25 PM
Thanks Mohamed by the translation, it will help me.
#47
Posted 02 August 2003 - 06:43 PM
Look at this thread:
http://casiocalc.org...ct=ST&f=1&t=689
#48
Posted 02 August 2003 - 10:44 PM
I never made a basic program on "graphic mode"(i watch the periodic table III of brazzucko but i dont understand it very well .

#49
Posted 02 August 2003 - 11:58 PM
some notes about graph mode:
within graph mode there are two sub-modes: Plot and Pixel
anything that starts with pxl (and Text) falls under Pixel mode, pixel modes coordinates start at 1,1 in the top right corner of the screen and end at 64,128 (x and y are reversed and must be intergers), therefore you can narrow down your positioning to individual pixels, unlike text mode where you can only position them in the spaces a letter can occupy.
Pxl mode commands:
PxlOn y,x //creates a black dot
PxlOff y,x //turns off that dot
PxlChange y,x //if dot is on, turns it off, if its off, turns it on
PxlTest y,x //a strange one, if you dont know how to use it it seems to do nothing, it checks to see if a pxl at y,x is on or off, if its on the variable Ans becomes 1 else it becomes 0 (this is extreamly usefull)
Sample: PxlTest 1,1 Ans->A if A=1 then "Pixel on" else "Pixel off" IfEndText y,x "SOMETHING" (or #) //wrights text to the screen.
Plot Mode
everything else in the sketch menu uses the Plot positioning, the best thing is that you can change this positioning with ViewWindow the normal setting is ViewWindow -6.3,6.3,1,-3.1,3.1,1 there is more but its optional. on the AFX you dont have to remember these numbers because ClrGraph sets the ViewWindow to its defaults and clears the screen (Cls is faster but does not effect the ViewWindow). anyway heres how it works (ViewWindow xmin,xmax,xscale,ymin,ymax,yscale) xmin is as far left as you can go (#,1 in Pxl mode) xmax is the opposite (#,128), the xscale effects the graphs, grid, and axis, you dont need to worry about it, just keep it as 1; for the y stuff ymin is the bottom of the screen (64,#) and ymax is at the top (#,1). PlotOn 0,0 will place a dot at the exact center of the screen, PlotOn -6.3,3.1 will put it at the top right corner. as you can see Plot commands dont just use intergers.
A note about F-line and Line
F-Line x,y,x2,y2 // draws a line between from x,y to x2,y2
Line is diffrent, heres how you use it:
Plot 0,0
Plot 1,1
Line
Line draws a line between the last two Plots (not PlotOn or Off, Plot), this can be usefull but most times you will use F-Line.
Sample: A use for Line. in Deg mode: Plot cos 0,sin 0 For 0->D To 360 Step 10 Plot cos D,sin D Line Next in Rad: Plot cos 0,sin 0 For 0->D To 2(pi) Step (pi)/36 Plot cos D,sin D Line Next
remember, its the last two plots, but they dont have to be next to each other. the above code will draw a circle around the origin.
does that help explain graph mode to you? I'll answer any questions you have.
#50
Posted 04 August 2003 - 07:20 PM
1)I search quickly in the AFX manual but within good results; An argument error appear in this comands:
[code=auto:0]
For 1->X To 128
PxlChg 1,X
Next
I try to do a sweep on the screen but Its like in the Pxl's commands does'nt accept variable, only numbers.
2)When i recall a picture in a program, always will appear the PICT menu (F3)?
#51
Posted 04 August 2003 - 07:45 PM
ok, this is an easy mistake to make, the X and Y vars are constantly being changed when using graph mode, so don't ever use them in graph games. just replace them with something else<!--QuoteEBegin-->For 1->X To 128<!--QuoteEBegin-->PxlChg 1,X<!--QuoteEBegin-->Next<!--QuoteEBegin-->I try to do a sweep on the screen but Its like in the Pxl's commands does'nt accept variable, only numbers.
what do you mean by PICT menu? the pictures are shown in the graph.
#52
Posted 04 August 2003 - 07:56 PM

"what do you mean by PICT menu? the pictures are shown in the graph"
I refer to the "button" thats appear on the low part of the screen when a graphic its displayed, available with the F3 button, but dont have importance.
#53
Posted 04 August 2003 - 08:23 PM

In another words I will send to you the source of the game in one doc file, and I will explain what each command line do in Spanish, please just wait because I didn?t finish yet the game.
If you what I will send do the same for the PERIODIC TABLE III.
Anyway for you create cool graphical BASIC games you must to use some ?techniques?, that you will learn when you start making your on games?
I learn BASIC by my self, studding the source of released games and programs, and making changes on it to see what?s happen.

#54
Posted 04 August 2003 - 11:08 PM
#55
Posted 05 August 2003 - 12:03 AM
I will wait by your programs. Besides crimson help me a lot with this topic. I made a lot of programs for the school but I never take into account to use graphic mode, this is new for me.
#56
Posted 06 August 2003 - 06:23 AM
Can you make a smaller periodic table, so that i have more mem on my calc for other things, eg. notes, games etc.
Take this as a challenge.

#57
Posted 06 August 2003 - 09:38 AM

One more thing you have one CFX right?, The PT program will be slow on that model, because I made it exclusively for the AFX.
The PT 2.7 size is 9462 bytes, ( the PT 2.0 has 9600 ) I can?t make a smaller and good PT program.

#58
Posted 06 August 2003 - 07:01 PM
Who is the processor clock frequency in the classpad?
#59
Posted 06 August 2003 - 07:06 PM

for instance, brazzucko's periodic table would run much faster since you could just click the element you want.
another thing is that the language is vastly improved, you can use local variables so that your variables are not effected by other programs. there are several other good things too.
#60
Posted 07 August 2003 - 06:34 AM
BTW: why do most of you guys own more than one kind of model? eg. CFX, AFX, Classpad

#61
Posted 07 August 2003 - 11:55 AM
as for games on the classpad, i'm not sure yet, Iv'e been working on my CasPaint ever since I got my classpad. one I finish I plan to make a very graphical game. there are other good things to, for instance if you have a string called mystring that contains "var" and you but 10->#mystring it assigns 10 to the variable var.
#62
Posted 07 August 2003 - 06:52 PM
#63
Posted 07 August 2003 - 06:58 PM
#64
Posted 08 August 2003 - 06:23 AM

#65
Posted 08 August 2003 - 06:21 PM
#66
Posted 09 August 2003 - 12:02 AM
"In the AFX 2.0 one day i was uploading programs with flash 100 and all was OK. I disconnect the calc from the interface to see the programs uploaded.
Moments later I connect again the calc to data transfer but an error appear. I restart the PC and the error still appear on the calc. when i send or receive data."
CONFIRMED:
My AFX 2.0 serial port its damaged

I try to send basic files with other AFX, and always an error appear on my calc. Whats wrong? i will disarm the calc to see the conector of the serial port.
#67
Posted 09 August 2003 - 07:49 PM
#68
Posted 09 August 2003 - 08:01 PM
#69
Posted 09 August 2003 - 08:15 PM
Conect the calc. to the PC, turn on the calc first and then the PC, open FA-123, choose "screen capture", then on my calc I push


Is that right?
#70
Posted 09 August 2003 - 08:50 PM
#71
Posted 09 August 2003 - 09:07 PM
#72
Posted 09 August 2003 - 10:52 PM
I see batterie electrolyte rests on a PCB "little way"(I dont know the name of the PCB "routes" in english) aside the serial port connector, i will clean it...
#73
Posted 16 August 2003 - 12:47 AM
I saw in casio website add-ins called CAS2 and Algebra 2, which is the difference between that add-ins with the software installed in the AFX 2.0?
That new versions are really better than the originals or there are only a few differences?
#74
Posted 16 August 2003 - 06:55 PM
#75
Posted 16 August 2003 - 07:12 PM
I will upload them in a friend calc. and use it to see it.
#76
Posted 08 November 2003 - 03:07 PM
a while ago i there was a topic, and in it there was some BSIC code for toggleing a variable between two states, but i cant find the topic, can anyone remember the code, or point me toward the topic?
#77
Posted 08 November 2003 - 04:48 PM
#78
Posted 08 November 2003 - 05:04 PM
#79
Posted 08 November 2003 - 07:35 PM
#80
Posted 08 November 2003 - 10:23 PM

A(A+1)-> A (something look a like)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users