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

More
2 years 11 months ago #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 to join the conversation.

More
2 years 11 months ago #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 to join the conversation.

More
2 years 11 months ago #285476 by phillc54
I think this one should be better.
 

Please Log in to join the conversation.

More
2 years 11 months ago #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

 

Please Log in to join the conversation.

More
2 years 11 months ago #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 to join the conversation.

More
2 years 11 months ago #285595 by Plasmanfm
Hallo phillc54

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

Please Log in to join the conversation.

More
2 years 11 months ago #285597 by phillc54

Please Log in to join the conversation.

More
2 years 11 months ago #285599 by Plasmanfm
Hallo phillc54

no
We have a mistake there
please refer

king regarde and thank´s
Juergen

Please Log in to join the conversation.

More
2 years 11 months ago #285601 by phillc54
Oops...
In qtplasmac_custom.py change line 86 to:'
Code:
    self.pwmEnablePin = self.h.newpin('cut_amps_pwmgn', hal.HAL_BIT, hal.HAL_OUT)

Please Log in to join the conversation.

More
2 years 11 months ago #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 to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum