Set/Clear Bit in register. (without touching any other bits) #248
-
Set/Clear Bit in register without touching any other bits? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 29 replies
-
This would be another feature request. I see if I can do something about it. 😉 |
Beta Was this translation helpful? Give feedback.
-
feat: Switch platform - bitwise operations:
Edit: OR if the register has "auto-reset capability" or/and you want to use simple button ... feat: Button platform - bitwise operations:
Edit2: feat: Add support for writing of values > 16b will be proly needed too. Edit3: refactor: Moved bit prop in Button & Switch platforms is needed too. Edit4: fix: Button & Switch platforms typo Edit5: fix: Bidirectional writing across multiple registers Edit6: fix: SolarmanWritableEntity - TypeError: 'int' object is not iterable |
Beta Was this translation helpful? Give feedback.
-
BUT... Even it's working I think we have it implemented wrong. Writing now working with registers in this order Cause if you set bit 3 which is number 8:
So you will have to switch places of those registers in your custom yaml and I need to reverse order of writing those registers in the code. |
Beta Was this translation helpful? Give feedback.
feat: Switch platform - bitwise operations:
Edit: OR if the register has "auto-reset capability" or/and you want to use simple button ...
feat: Button platform - bitwise operations:
Edit2: feat: Add support for writing of values > 16b will be proly needed too.
Edit3: refactor: Moved bit prop in Button & Switch platforms is needed too.
Edit4: fix: Button & Switch platforms typo
Edit5: fix: Bidirectional writing across …