Bitwise Construction of a byte in telemetry screen using CHECKBUTTON #1427
-
Hello, Being a novice Ruby user, I want to construct a byte value in a telemetry screen, that will be sent to a register in a microcontroller, using checkbuttons. I don't seem to find the correct syntax, however. Below is a representation of the desired screen (only a nibble for brevity): Register Builder
This is what I 've come up so far:
This results in error:
Can anyone put me on the right track? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Most of your code here is running in ERB (the code in <% %>). That is run as part of the screen config file, not when the button is pressed. You should move all that code into button code before the cmd(). Seperate lines with semicolons. |
Beta Was this translation helpful? Give feedback.
Most of your code here is running in ERB (the code in <% %>). That is run as part of the screen config file, not when the button is pressed. You should move all that code into button code before the cmd(). Seperate lines with semicolons.