Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/
You can then copy/paste the listing and post it in "code" tags.
Here is a program to retrieve and update the value of the 6 different virtual variables of the DM42.
With XEQ "VirtV" you get a menu to access each virtual variable. Press the corresponding F-key to recall the variable value or enter a value and press the corresponding F-key to update the value of the virtual variable.
Note: storing a value to a read-only virtual variable (DevID, ResX, ResY, Vbat) has no effect.
I just use a program with MVAR instructions for the 6 virtual variables, then SOLVE it. Same effect.
Good idea!
I have updated my virtvar program to add a second menu line allowing to directly select the graphic mode and/or which LCD item is refreshed without the need to know the virtual variable corresponding value.
Graphic mode:
hp = 131x16 legacy HP 42S graphic mode
200 = 200x120 full screen
400 = 400x240 full screen
LCD refreshing (any combination of the three items is allowed to cover the 8 values of the RefLCD variable):
I was just about to do the same thing ! thank you for saving me the time
If I may, I think there is a "GTO A" missing between lines 19 and 20 because there is a strange page change when you read twice the value of a virtual variable.
I have updated my virtvar program to add a second menu line allowing to directly select the graphic mode and/or which LCD item is refreshed without the need to know the virtual variable corresponding value.
For some reason I cannot see 'HP', '200' etc. labels (see attached screenshot) - is there some bug? I'm using FW v.3.2
Attachments
20180213-11091157.png (1.98 KiB) Viewed 15461 times
I have updated my virtvar program to add a second menu line allowing to directly select the graphic mode and/or which LCD item is refreshed without the need to know the virtual variable corresponding value.
For some reason I cannot see 'HP', '200' etc. labels (see attached screenshot) - is there some bug? I'm using FW v.3.2
Well normally these labels are visible if you press the up or down arrow keys.
Here is the updated version including the feedback from wawachief. I just tested it with v3.3 and it works as expected.
Note: if you prefer to start with the second line on the display by default ( 'HP', '200' etc.) just add a "GTO B" just after the LBL "VirtV"