Post Reply 
First python project : HP41 emulator + hints of workflow
06-13-2021, 02:51 PM
Post: #45
RE: First python project : HP41 emulator + hints of workflow
(06-13-2021 02:00 PM)Stevetuc Wrote:  
(06-13-2021 03:29 AM)gfbci Wrote:  First I would like to thank Olivier and this group for their generously shared knowledge.

Py41.e can work on G1 by editing lines 74-75 values of the py41.py file with something like:

...
aof=100 if k==-1 else 1
if aof>=500:
...

This apparently prevents the simulator from going into sleep mode when a key is released.
Don't trust my explanation, but it works!

Gianfranco

edit: Please disregard the values, what matters is to stop the increment of aof

That's not working for me...
Can I check exactly what you have:
py41.py lines 74-75
And
nut.py line 893 (since Olivier advised changing delay here for G1)
Thanks

Forgive me for the confusion, maybe I wasn't clear in editing the first post. No values need to be changed, just edit:

(74) aof+=300 if k==-1 else 1
to:
(74) aof=300 if k==-1 else 1

The file nut.py has not been touched.
Unfortunately I don't have a Windows machine at the moment to download the changed file, I would gladly send it.

Gianfranco
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: First python project - Vincent Weber - 05-16-2021, 01:17 PM
RE: First python project - ggauny@live.fr - 05-16-2021, 05:23 PM
RE: First python project - tcab - 05-17-2021, 12:00 AM
RE: First python project : HP41 emulator + hints of workflow - gfbci - 06-13-2021 02:51 PM



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