Register

Casio Usb Power Graphic 2 SDK Info

Learn how to program. Code snippets for creating sprites etc. Submit your own or use those of others.
Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860 GII SD, Casio Classpad 330, Casio fx-CG 20, Casio Classpad fx-cp400

Casio Usb Power Graphic 2 SDK Info

Postby helder7 » Mon Jul 09, 2012 8:13 pm

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: 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

Senior Member
User avatar
Posts: 604
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Postby SimonLothar » Tue Jul 10, 2012 7:35 am

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).
I'll be back!

Junior Member
User avatar
Posts: 18
Joined: Sun May 20, 2012 4:05 pm
Location: France (Ain)
Calculators: Casio Cfx Series, Casio fx-9750 G II, Casio fx-9860 G SD, Casio Classpad 330 plus

Postby louloux » Wed Jul 11, 2012 4:45 pm

Oh shit I used this functions in all my addins ! Why can't Casio respect compatibility ?
Administrator of the French website Planète-Casio.

Senior Member
User avatar
Posts: 604
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Postby SimonLothar » Sat Jul 14, 2012 3:47 pm

louloux wrote:...Why can't Casio respect compatibility ?
To be fair: they did...in case of the fx9860-series! The syscalls predominantly are compatible. Programs should rather not rely on hardware-implementations.
I'll be back!

Senior Member
Posts: 68
Joined: Tue May 08, 2012 5:40 pm

Re: Casio Usb Power Graphic 2 SDK Info

Postby happy » Wed Sep 12, 2012 5:13 am

Bfile_GetMediaFree() doesn't work either.

Senior Member
User avatar
Posts: 604
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Casio Usb Power Graphic 2 SDK Info

Postby SimonLothar » Thu Sep 20, 2012 5:15 pm

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!

Senior Member
Posts: 68
Joined: Tue May 08, 2012 5:40 pm

Re: Casio Usb Power Graphic 2 SDK Info

Postby happy » Sun Sep 23, 2012 5:30 pm

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.

User avatar
Posts: 89
Joined: Thu Apr 05, 2012 3:16 pm
Location: Akron, OH, USA
Calculators: Casio fx-9750 G II, Casio fx-CG 10

Re: Casio Usb Power Graphic 2 SDK Info

Postby flyingfisch » Tue Dec 18, 2012 10:08 pm

does the pdf in the op still exist?

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860 GII SD, Casio Classpad 330, Casio fx-CG 20, Casio Classpad fx-cp400

Re: Casio Usb Power Graphic 2 SDK Info

Postby helder7 » Wed Dec 19, 2012 12:10 am

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

Postby JayPlott » Tue May 30, 2017 4:58 pm

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.

Next

Return to Tutorials & Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest