Post Reply 
HP42S commands with symbols renaming advice
02-13-2018, 12:04 PM
Post: #8
RE: HP42S commands with symbols renaming advice
(02-13-2018 11:32 AM)salvomic Wrote:  Wonderful, Andy, thank you!

Another way to love DM42/Free42/HP42s!

Salvo

Thanks Salvo. I agree - in fact I'm specifically targeting the HP42S/Free42/DM42 because it is the HP design that I love the most. I am so happy that Free42 will always be there and that the DM42 was recently created.

Python does open up possibilities for the DM42 e.g. I ported some graphic primitive routines originally written for the Raspberry Pi in C into Python:
Code:

draw_line(x0, y0, x1, y1)
draw_rect(x0, y0, w, h)
fill_rect(x0, y0, w, h)
draw_circle(x0, y0, r)
fill_circle(x0, y0, r)

which I then converted to HP42S RPN using my converter. This then allowed me to create images like this:

[Image: 20180127-11561967.png?raw=1]

and targeting the larger screen size of the DM42 - this image:

[Image: 20180127-12134373.png?raw=1]

Creating these drawing primitives directly in RPN would have been a big project for someone, I think. It only took me a few hours using Python, and I could draw upon existing algorithms I found on the internet.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP42S commands with symbols renaming advice - tcab - 02-13-2018 12:04 PM



User(s) browsing this thread: 1 Guest(s)