Module: BrickPi::Native::Sensor
- Defined in:
- ext/brick_pi/native.c
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
46 47 48 49 50 |
# File 'ext/brick_pi/native.c', line 46
VALUE bprb_Sensor_get(VALUE self, VALUE key) {
int index = FIX2INT(key);
int result = BrickPi.Sensor[index];
return INT2FIX(result);
}
|