setBit method

MraaReturnCode setBit(
  1. MraaAioContext dev,
  2. int bits
)

Set bit - mraa_aio_set_bit

Set the bit value which MRAA will shift the raw reading from the ADC to, i.e. 10bits

Implementation

MraaReturnCode setBit(MraaAioContext dev, int bits) =>
    MraaReturnCode.returnCode(_impl.mraa_aio_set_bit(dev, bits));