Einzelnen Beitrag anzeigen
  #5  
Alt 05.08.2024, 18:49
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.898
Abgegebene Danke: 586
Erhielt 7.087 Danke für 1.598 Beiträge
Aktivitäten Langlebigkeit
9/20 15/20
Heute Beiträge
1/3 sssss2898
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von hap Beitrag anzeigen
Use clear_value to cancel the override. It will return to whatever the value was before it was changed with set_value.
Great, works perfectly - many thanks!
Zitieren:
Before set_value, do a read() on 0x18 and set the starting value to that, so the value after a rotation is unchanged after clear_value.
This 'DATA' dial seems to be a bit more complicated - my first trials were not successful.
For read() it's not allowed to add a field(0x18), so I've tried it this way(?):
io = (ioport.ports[":IN.0"]:read())&0x18
But a following command
ioport.ports[":IN.0"]:field(0x18):set_value(io)
changes the 'MENU dial again!?

What I'd like to do is to switch to "P-P on" mode, and later back to "P-C on" again - the first is done by Down-Right-Right-Right-Up.
Could you please tell me the exact command sequence for this task?
__________________
Meine Webseite: https://fhub.jimdofree.com/
Mit Zitat antworten