Method: Phidgets::DCMotor#initialize
- Defined in:
- ext/phidgets/phidgets_dc_motor.c
#new ⇒ Object
Creates a Phidget DCMotor object.
9 10 11 12 13 |
# File 'ext/phidgets/phidgets_dc_motor.c', line 9 VALUE ph_dc_motor_init(VALUE self) { ph_data_t *ph = get_ph_data(self); ph_raise(PhidgetDCMotor_create((PhidgetDCMotorHandle *)(&(ph->handle)))); return self; } |