/* Sets the intensity control register (0..15 or 0x00..0x0F)  */
as1115Error_t as1115SetBrightness(uint8_t x)
/* Sets the intensity control register (0..15 or 0x00..0x0F)  */
as1115Error_t as1115SetBrightness(uint8_t x)
{
  as1115Error_t error = AS1115_ERROR_OK;
  if (x > 0xF) x = 0xF;
  error = as1115WriteCmdData(AS1115_SUBADDRESS, AS1115_INTENSITY, x);
  return error;
}