Constructor for a LEGO® Power Functions DC motor.
Namespace: IO.Objects.LPC1114IOP.LEGORCAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntaxpublic Output(
pin_id_t pin,
int channel,
legorc_motor_id_t motor,
double velocity
)
Parameters
- pin pin_id_t
- GPIO pin to drive infrared emitter.
- channel Int32
- Channel number.
- motor legorc_motor_id_t
- Motor ID (1 for Motor A, 2 for Motor B).
- velocity Double
- Initial normalized motor velocity (-1.0 to
+1.0).
See Also