Button erstellt und er soll auch schalten Button created and he should also swit

More
14 Nov 2023 23:05 #285438 by phillc54
From what I see, I should not have changed the cut_amps_2 widget type, it should be a HALLabel like you had originally and it should just mimic the value of cut_amps. Then the two extra buttons will increment and decrement cut_amps and then cut_amps_2 will follow that value. Does that sound correct?

Please Log in or Create an account to join the conversation.

More
15 Nov 2023 09:52 #285474 by Plasmanfm
hallo phillc54

As I understood it in the translation, it is the right way
But isn't that possible with the value from cut_amp-f in
line 12 aa.setValue(max) .... aa.setValue(??? cut_amp-f ???)
It is now the case that the value of the display is sent to the hm 2-7i96s pwmgn -0--00- value

king regarde and thank's
Juergen

Please Log in or Create an account to join the conversation.

More
15 Nov 2023 09:56 #285476 by phillc54
I think this one should be better.
 
Attachments:

Please Log in or Create an account to join the conversation.

More
15 Nov 2023 16:41 #285525 by Plasmanfm
Hallo phillc54

Oh....
now we have an error !!
see attachment

I didn't have any errors before


king regarde and thank's

juergen

 
Attachments:

Please Log in or Create an account to join the conversation.

More
15 Nov 2023 22:28 #285549 by phillc54
Oh, that pin does not exist in the latest code. I have changed the names to be similar to your original names. The pin for the cut amps display is already linked in the latest code.

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 10:06 #285595 by Plasmanfm
Hallo phillc54

Ok 
I swapped the custom_postgui.hal for the first oneget the error
please refer Attachment
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 10:18 #285597 by phillc54
Can you try this one:
 
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 11:14 #285599 by Plasmanfm
Hallo phillc54

no
We have a mistake there
please refer

king regarde and thank´s
Juergen
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 11:20 #285601 by phillc54
Oops...
In qtplasmac_custom.py change line 86 to:'
    self.pwmEnablePin = self.h.newpin('cut_amps_pwmgn', hal.HAL_BIT, hal.HAL_OUT)

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 11:46 #285605 by Plasmanfm
Hallo phillc54

Switching on the pwmgn works now
But I have the value on the display
is 0! I can't change the value using + or minus

king regarde and thank's
Juergen

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.079 seconds
Powered by Kunena Forum