Module: BrickPi::Native::Encoder
- Defined in:
- ext/brick_pi/native.c
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
52 53 54 55 56 |
# File 'ext/brick_pi/native.c', line 52
VALUE bprb_Encoder_get(VALUE self, VALUE key) {
int index = FIX2INT(key);
int result = BrickPi.Encoder[index];
return INT2FIX(result);
}
|