|
VEX EDR Python API
|
Config Encoder: counts ticks. More...
Public Member Functions | |
| def | __init__ (self, digitalnum, is_quad=False) |
| def | value (self, value=None) |
| Get or set the current value in encoder ticks. More... | |
Config Encoder: counts ticks.
Simple (no direction) or Quad (directed). Quad encoder connects to two consecutive ports.
| digitalnum | digital port the encoder is connected to (1-12) |
| is_quad | if True, quad encoder (using two ports), otherwise simple encoder. Default False. |
| def vex.Encoder.__init__ | ( | self, | |
| digitalnum, | |||
is_quad = False |
|||
| ) |
| def vex.Encoder.value | ( | self, | |
value = None |
|||
| ) |
Get or set the current value in encoder ticks.
| value | specify to set, omit to get current value. |
1.8.15