Casio Python updates
|
04-07-2020, 08:19 PM
(This post was last modified: 04-09-2020 12:39 AM by ijabbott.)
Post: #1
|
|||
|
|||
Casio Python updates
The firmware updates promised for April 2020 are out now.
Correction: OS Ver. 3.30 has not been released for fx-9860GIII as of 2020-04-07. Maybe it will be released later? The MicroPython has a new "casioplot" module for drawing stuff. I must say that the list of functions in the casioplot module is not very extensive:
EDIT: There appears to be an additional, undocumented function:
Drawing updates are not shown until the next call to show_screen(). The drawing screen is cleared (to all white pixels) when the SHELL is initialized (e.g. by running a .py script). On the monochrome calculators (Graph 35+E II and fx-9860GIII is it is ever supported), RGB color values between (248,252,248) and (255,255,255) show as white; all other RGB color values show as black. — Ian Abbott |
|||
04-08-2020, 02:53 AM
(This post was last modified: 04-08-2020 11:12 AM by toml_12953.)
Post: #2
|
|||
|
|||
RE: Casio Python updates
(04-07-2020 08:19 PM)ijabbott Wrote: The firmware updates promised for April 2020 are out now. Here's an example of the new drawing functions on the fx-CG50: Code: from math import * It draws the infamous green hat. Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
04-08-2020, 08:44 PM
(This post was last modified: 04-08-2020 08:45 PM by ijabbott.)
Post: #3
|
|||
|
|||
RE: Casio Python updates
(04-08-2020 02:53 AM)toml_12953 Wrote: Here's an example of the new drawing functions on the fx-CG50: Thanks! I got bored waiting for it to finish, so I tweaked it a little bit. Code: from math import * — Ian Abbott |
|||
04-08-2020, 09:37 PM
Post: #4
|
|||
|
|||
RE: Casio Python updates
(04-08-2020 08:44 PM)ijabbott Wrote:(04-08-2020 02:53 AM)toml_12953 Wrote: Here's an example of the new drawing functions on the fx-CG50: You don't want to see it drawn? ![]() Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
04-08-2020, 10:40 PM
Post: #5
|
|||
|
|||
RE: Casio Python updates
Matplotlib and Turtle are also available.
Links to these modules are provided at the bottom of this post: https://tiplanet.org/forum/viewtopic.php?f=51&t=23670 Jean-Charles |
|||
04-09-2020, 12:03 AM
(This post was last modified: 04-09-2020 12:06 AM by ijabbott.)
Post: #6
|
|||
|
|||
RE: Casio Python updates
(04-08-2020 09:37 PM)toml_12953 Wrote:(04-08-2020 08:44 PM)ijabbott Wrote: Thanks! I got bored waiting for it to finish, so I tweaked it a little bit. It still shows it being drawn, but a whole section at a time (including hidden line removal) instead of a single point at a time. The main speed increase comes from only blanking 10 pixels below the curve for hidden line removal instead of blanking all the way to the bottom. — Ian Abbott |
|||
04-09-2020, 12:15 AM
Post: #7
|
|||
|
|||
RE: Casio Python updates
(04-08-2020 10:40 PM)Helix Wrote: Matplotlib and Turtle are also available. Fantastic! The fx-CG50 gets better and better. Thanks for the heads-up. Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
04-09-2020, 12:35 AM
Post: #8
|
|||
|
|||
RE: Casio Python updates
(04-08-2020 10:40 PM)Helix Wrote: Matplotlib and Turtle are also available. Nice! I didn't mention them because they're not built-in. I see they use an undocumented built-in function clear_screen(). (It would be nice if that could take an optional color parameter.) — Ian Abbott |
|||
04-09-2020, 12:54 AM
Post: #9
|
|||
|
|||
RE: Casio Python updates
(04-09-2020 12:35 AM)ijabbott Wrote:(04-08-2020 10:40 PM)Helix Wrote: Matplotlib and Turtle are also available. Yeah, it would save me a bit of time in my hat program to be able to clear the screen to black with a built-in command. Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
04-11-2020, 03:40 PM
Post: #10
|
|||
|
|||
RE: Casio Python updates
Very interesting to see that.
I'd wonder when we can hope that that update will arrive in the shops (except that because of the lock down the local calculator shop in the uk is shut)? None of the websites seem to sell a particular version, and I saw a YouTube video suggesting that you can only update an older cg50 if you have a PC (I have an android). Stephen Lewkowicz (G1CMZ) ANDROID HP Prime App broken offline on some mobiles |
|||
04-11-2020, 04:09 PM
Post: #11
|
|||
|
|||
RE: Casio Python updates
(04-09-2020 12:03 AM)ijabbott Wrote: It still shows it being drawn, but a whole section at a time (including hidden line removal) instead of a single point at a time. The main speed increase comes from only blanking 10 pixels below the curve for hidden line removal instead of blanking all the way to the bottom. The program I ported it from had a built-in line command it used to draw from just below the current point to the bottom of the screen. I blindly followed that. Your method of only clearing as many pixels as necessary is great! Thanks. Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
04-11-2020, 04:31 PM
Post: #12
|
|||
|
|||
RE: Casio Python updates
(04-11-2020 03:40 PM)StephenG1CMZ Wrote: Very interesting to see that. If there's no WINE for Android, you'll have to find a friend with a PC to update the Casio. You really have NO access to a PC, laptop or other Windows or Linux machine? Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
04-11-2020, 07:31 PM
Post: #13
|
|||
|
|||
RE: Casio Python updates
No PC, both broke a while ago and I'm deterred from splashing out on a new laptop in case the cat sits on my lap
![]() It seems there is a Wine for android, but I haven't yet pinpointed it amongst all the more social wine apps. Stephen Lewkowicz (G1CMZ) ANDROID HP Prime App broken offline on some mobiles |
|||
04-11-2020, 08:38 PM
Post: #14
|
|||
|
|||
RE: Casio Python updates
(04-11-2020 07:31 PM)StephenG1CMZ Wrote: It seems there is a Wine for android, but I haven't yet pinpointed it amongst all the more social wine apps. I couldn't live without WINE and wine! ![]() Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
04-12-2020, 03:53 PM
Post: #15
|
|||
|
|||
RE: Casio Python updates
For standard Python users, here's a version that runs on cPython:
Code: from math import * Tom L I don't care for whom you voted. If you put ice in your beer, you're crazy. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)