- User Interfaces
- Plasmac
- Button erstellt und er soll auch schalten Button created and he should also swit
Button erstellt und er soll auch schalten Button created and he should also swit
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
14 Nov 2023 23:05 #285438
by phillc54
Replied by phillc54 on topic Button erstellt und er soll auch schalten Button created and he should also swit
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.
- Plasmanfm
- Offline
- Premium Member
Less
More
- Posts: 100
- Thank you received: 10
15 Nov 2023 09:52 #285474
by Plasmanfm
Replied by Plasmanfm on topic Button erstellt und er soll auch schalten Button created and he should also swit
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
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.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
15 Nov 2023 09:56 #285476
by phillc54
Replied by phillc54 on topic Button erstellt und er soll auch schalten Button created and he should also swit
I think this one should be better.
Please Log in or Create an account to join the conversation.
- Plasmanfm
- Offline
- Premium Member
Less
More
- Posts: 100
- Thank you received: 10
15 Nov 2023 16:41 #285525
by Plasmanfm
Replied by Plasmanfm on topic Button erstellt und er soll auch schalten Button created and he should also swit
Hallo phillc54
Oh....
now we have an error !!
see attachment
I didn't have any errors before
king regarde and thank's
juergen
Oh....
now we have an error !!
see attachment
I didn't have any errors before
king regarde and thank's
juergen
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
15 Nov 2023 22:28 #285549
by phillc54
Replied by phillc54 on topic Button erstellt und er soll auch schalten Button created and he should also swit
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.
- Plasmanfm
- Offline
- Premium Member
Less
More
- Posts: 100
- Thank you received: 10
16 Nov 2023 10:06 #285595
by Plasmanfm
Replied by Plasmanfm on topic Button erstellt und er soll auch schalten Button created and he should also swit
Hallo phillc54
Ok
I swapped the custom_postgui.hal for the first oneget the error
please refer Attachment
Ok
I swapped the custom_postgui.hal for the first oneget the error
please refer Attachment
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
16 Nov 2023 10:18 #285597
by phillc54
Replied by phillc54 on topic Button erstellt und er soll auch schalten Button created and he should also swit
Can you try this one:
Please Log in or Create an account to join the conversation.
- Plasmanfm
- Offline
- Premium Member
Less
More
- Posts: 100
- Thank you received: 10
16 Nov 2023 11:14 #285599
by Plasmanfm
Replied by Plasmanfm on topic Button erstellt und er soll auch schalten Button created and he should also swit
Hallo phillc54
no
We have a mistake there
please refer
king regarde and thank´s
Juergen
no
We have a mistake there
please refer
king regarde and thank´s
Juergen
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
16 Nov 2023 11:20 #285601
by phillc54
Replied by phillc54 on topic Button erstellt und er soll auch schalten Button created and he should also swit
Oops...
In qtplasmac_custom.py change line 86 to:'
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.
- Plasmanfm
- Offline
- Premium Member
Less
More
- Posts: 100
- Thank you received: 10
16 Nov 2023 11:46 #285605
by Plasmanfm
Replied by Plasmanfm on topic Button erstellt und er soll auch schalten Button created and he should also swit
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
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
- User Interfaces
- Plasmac
- Button erstellt und er soll auch schalten Button created and he should also swit
Time to create page: 0.079 seconds