Lines Matching refs:press
49 Pressing the button labelled ``SW3`` will increment the button press
68 Pressing the button labelled ``SW3`` will increment the button press
87 Pressing the button labelled ``USER`` will increment the button press counter
106 Pressing the button labelled ``USER`` will increment the button press counter
331 press counter) can be accomplished using the following Python code:
349 button = node.sdo['Button press counter']
357 # Map TPDO 1 to transmit the button press counter on changes
359 node.tpdo[1].add_variable('Button press counter')
367 # Reset button press counter
373 print("Button press counter: {}".format(node.tpdo['Button press counter'].phys))
374 if node.tpdo['Button press counter'].phys >= 10:
384 Button press counter: 0
385 Button press counter: 1
386 Button press counter: 2
387 Button press counter: 3
388 Button press counter: 4
389 Button press counter: 5
390 Button press counter: 6
391 Button press counter: 7
392 Button press counter: 8
393 Button press counter: 9
394 Button press counter: 10