Module: BrickPi::Native::MotorEnable

Defined in:
ext/brick_pi/native.c

Class Method Summary collapse

Class Method Details

.[]=(key, value) ⇒ Object



29
30
31
32
33
# File 'ext/brick_pi/native.c', line 29

VALUE bprb_MotorEnable_set(VALUE self, VALUE key, VALUE value) {
    int index = FIX2INT(key);
    BrickPi.MotorEnable[index] = FIX2INT(value);
    return value;
}