Casio Usb Power Graphic 2 SDK Info
11 posts
• Page 1 of 2 • 1, 2
- helder7
- Senior Member
- Posts: 369
- Joined: Tue Jan 03, 2012 11:24 pm
- Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400
Casio Usb Power Graphic 2 SDK Info
The "IsKeyDown" function in "fx-9860G SDK Libraries" has been deprecated and is now
unsupported in "USB POWER GRAPHIC 2" version of "fx-9860GII(SD)",
"GRAPH75(95)" and "fx-9860G AU PLUS".
Instead of "IsKeyDown", please use "GetKey" or "Bkey_GetKeyWait"(new function)
according to the use cases illustrated below.
The following use cases are only examples, “GetKey” and “Bkey_GetKeyWait” are not
guaranteed to perform identically to “IsKeyDown”.
Case1: Poll key state until a particular key is pressed
・Code example (using "IsKeyDown")
・Code example (using "GetKey" instead of "IsKeyDown")
Case2: Check to see if a key is pressed (with an optional wait/timeout)
・Code example (using "IsKeyDown")
・Code example (using "Bkey_GetKeyWait" instead of "IsKeyDown")
All the details in the attached pdf. Perhaps many games/applications will not work on new model fx-9860 USB POWER GRAPHIC 2
Complete changes documented in pdf: Download
Source: Casio
unsupported in "USB POWER GRAPHIC 2" version of "fx-9860GII(SD)",
"GRAPH75(95)" and "fx-9860G AU PLUS".
Instead of "IsKeyDown", please use "GetKey" or "Bkey_GetKeyWait"(new function)
according to the use cases illustrated below.
The following use cases are only examples, “GetKey” and “Bkey_GetKeyWait” are not
guaranteed to perform identically to “IsKeyDown”.
Case1: Poll key state until a particular key is pressed
・Code example (using "IsKeyDown")
- Code: Select all
while (1){
if (IsKeyDown(KEY_CHAR_0)) break;
}
・Code example (using "GetKey" instead of "IsKeyDown")
- Code: Select all
unsigned int key;
while (1){
GetKey(&key);
if (KEY_CHAR_0 == key) break;
}
Case2: Check to see if a key is pressed (with an optional wait/timeout)
・Code example (using "IsKeyDown")
- Code: Select all
int flag0 = 0;
if (IsKeyDown(KEY_CHAR_0))
flag0 = 1;
・Code example (using "Bkey_GetKeyWait" instead of "IsKeyDown")
- Code: Select all
int kcode1 = 0, kcode2 = 0, flag0 = 0;
short unused = 0;
if (Bkey_GetKeyWait(&kcode1, &kcode2, KEYWAIT_HALTOFF_TIMEROFF, 0,
1, &unused)==KEYREP_KEYEVENT) {
if ((kcode1==7)&&(kcode2==2)) flag0 = 1;
}
All the details in the attached pdf. Perhaps many games/applications will not work on new model fx-9860 USB POWER GRAPHIC 2
Complete changes documented in pdf: Download
Source: Casio
SiO2 + CaCO3 ----------> CaSiO3 + CO2
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
The new models are based on the Prizm-MPU (SH-7305), which port addresses are completely incompatible compared to the old MPUs (SH-7337 or SH-7355). Though, the syscalls are still supported with OS 2.02. Any addin, which bypasses syscalls by using direct SH-7337- or SH-7355-port access will fail.
BTW: the fx-9750GII, which I recently bought, has not even the label "USB POWER GRAPHIC 2". The new models are detectable by the OS version 2.02, only (or by inspecting the board).
BTW: the fx-9750GII, which I recently bought, has not even the label "USB POWER GRAPHIC 2". The new models are detectable by the OS version 2.02, only (or by inspecting the board).
I'll be back!
- louloux
- Junior Member
-
- Posts: 18
- Joined: Sun May 20, 2012 4:05 pm
- Location: France (Ain)
- Calculators: Casio Cfx Series, Casio fx-9750GII, Casio fx-9860G SD, Casio Classpad 330 plus
Oh shit I used this functions in all my addins ! Why can't Casio respect compatibility ?
Administrator of the French website Planète-Casio.
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
To be fair: they did...in case of the fx9860-series! The syscalls predominantly are compatible. Programs should rather not rely on hardware-implementations.louloux wrote:...Why can't Casio respect compatibility ?
I'll be back!
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: Casio Usb Power Graphic 2 SDK Info
happy wrote:Bfile_GetMediaFree() doesn't work either.
0x042E: int Bfile_GetMediaFree_OS( unsigned short*media_id, int*freespace );
This call is not compatible any more on USB POWER GRAPHIC 2 calculators, because these machines support up to 32 GB SD. The old interface does not fit.
freespace has to be a pointer to a 2-element int array (t. i. int64)
int freespace[2]
I'll be back!
Re: Casio Usb Power Graphic 2 SDK Info
Thanks Simon. Same syscall works for GII and GII-2, but free space is in freeSpace[0] for GII and in freeSpace[1] for GII-2.
- flyingfisch
-
- Posts: 89
- Joined: Thu Apr 05, 2012 3:16 pm
- Location: Akron, OH, USA
- Calculators: Casio fx-9750GII, Casio fx-CG10
Re: Casio Usb Power Graphic 2 SDK Info
does the pdf in the op still exist?
- helder7
- Senior Member
- Posts: 369
- Joined: Tue Jan 03, 2012 11:24 pm
- Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400
Re: Casio Usb Power Graphic 2 SDK Info
flyingfisch wrote:does the pdf in the op still exist?
yes, is attached in omnimaga and is available in casio edu downloads (Graphic calculators > SDK > [PDF file] SDK_Announcement.pdf).
SiO2 + CaCO3 ----------> CaSiO3 + CO2
- JayPlott
Re: Casio Usb Power Graphic 2 SDK Info
helder7 wrote:flyingfisch wrote:does the pdf in the op still exist?
yes, is attached in omnimaga and is available in casio edu downloads (Graphic calculators > SDK > [PDF file] SDK_Announcement.pdf).
I still can't find the pdf. Is it online anywhere?
Last edited by JayPlott on Sat Nov 04, 2017 8:20 am, edited 2 times in total.
11 posts
• Page 1 of 2 • 1, 2
Return to Tutorials & Code Snippets
Who is online
Users browsing this forum: No registered users and 6 guests