Closed brentru closed 3 years ago
I'm conflicted on modifying the universal SensorEvent API to support a raw, unitless, measurement from the ADC. Possibly packaging data for the moisture sensor as an analog PinEvent
is a better idea?
from mtg - may be possible to remove SENSOR_TYPE_CAPTOUCH_RAW
. Replace raw_captouch
field with a raw_value
field so its not limited to captouch-only, its just a raw adc val.
Changed SENSOR_TYPE_CAPTOUCH_RAW
to SENSOR_TYPE_RAW
Changed raw_captouch
to raw_value
This will allow raw, unit-less, integer values to be sent by sensors that aren't compatible with the universal Sensor API.
SENSOR_TYPE_CAPTOUCH_RAW
enum for a raw capacitive touch sensor (sends as int).SensorEvent
'sraw_captouch
field will be set.SENSOR_TYPE
as it's a raw value.