Documentation / Blocks / Hardware Switch

Hardware Switch


  • the switch has the ‘name’: ‘sw1’
  • and connected to ‘port’ ‘D11’ (or any other port you chose)
  • ‘sw1’ can be set to ‘on’ by a rule like this: “sw1 = 1 ;”
  • or off: “sw1 = 0 ;”
  • and it is possible to use the current value of ‘sw1’ in a rule, for example
  • to set sw2 to off when sw1 is on: “if ( sw1 ) { sw2 = 0 ; }”

Setting: Disabled

To disable or enable this block.

Setting: Name

The name of this block.

Setting: Pin

Setting: Comment