MAX44000 Class
- ID: max44000
- Name: Ambient and Infrared Proximity Sensor
- Category: light
- Manufacturer: maxim
- Connection: i2c
- Link: https://www.maximintegrated.com/en/products/analog/sensors-and-sensor-interface/MAX44000.html
Maxim Integrated* MAX44000 is an ambient and infrared proximity sensor. This module was tested on the Maxim Integrated MAX44000PMB1 PMOD module from the analog PMOD kit.
Item Index
Methods
MAX44000
-
bus
-
devAddr
Instantiates an MAX44000 object
Parameters:
-
bus
NumberNumber of the used bus
-
devAddr
NumberAddress of the used I2C device
Returns:
getProximity
()
Number
MAX44000 object destructor; basically, it closes the I2C connection. ~MAX44000 (); no need for the destructor - the I2c connection will be closed when m_i2cMaxControlCtx variable will be out of context Reads the proximity value from the sensor (based on ambient data).
Returns:
getAmbient
()
Number
Reads the ambient value from the sensor (based on ambient data).
Returns:
name
()
String
Returns the name of the component
Returns:
i2cReadReg_8
-
reg
Reads a one-byte register
Parameters:
-
reg
NumberAddress of the register
Returns:
i2cReadReg_16
-
reg
Reads a two-byte register
Parameters:
-
reg
NumberAddress of the register
Returns:
i2cWriteReg
-
reg
-
value
Writes to a one-byte register
Parameters:
-
reg
NumberAddress of the register
-
value
NumberByte to be written