Documentation ¶
Overview ¶
Package isl29125 allows interfacing with the ISL29125 RGB light sensor Datasheet: http://www.intersil.com/content/dam/Intersil/documents/isl2/isl29125.pdf
Index ¶
Constants ¶
View Source
const ( ModePowerDown = 0x00 ModeGreenOnly = 0x01 ModeRedOnly = 0x02 ModeBlueOnly = 0x03 ModeStandBy = 0x04 ModeRGB = 0x05 ModeRG = 0x06 ModeGB = 0x07 )
View Source
const ( LuxRange375 = 0x00 LuxRange10k = 0x08 )
View Source
const ( IRAdjustLow = 0x00 IRAdjustMed = 0x20 IRAdjustHigh = 0x3f )
View Source
const ( Resolution16Bit = 0x00 Resolution12Bit = 0x10 )
View Source
const ( SyncStartOnWrite = 0x00 SyncStartOnInt = 0x20 )
View Source
const ( RegisterDeviceID = 0x00 RegisterConfig1 = 0x01 RegisterConfig2 = 0x02 RegisterConfig3 = 0x03 RegisterFlags = 0x08 RegisterGreenLow = 0x09 RegisterGreenHigh = 0x0a RegisterRedLow = 0x0b RegisterRedHigh = 0x0c RegisterBlueLow = 0x0d RegisterBlueHigh = 0x0e )
View Source
const ( FlagReady = 0x00 FlagInterrupt = 0x01 FlagConversion = 0x02 FlagPowerDownOrBrownOut = 0x04 FlagGreenConverting = 0x10 FlagRedConverting = 0x20 FlagBlueConverting = 0x30 )
View Source
const ( SensorAddr = 0x44 DeviceID = 0x7d )
View Source
const ( CmdGetStatus = 0x08 CmdReset = 0x46 )
View Source
const (
DefaultConfig = ModeRGB | LuxRange375 | Resolution16Bit | SyncStartOnWrite
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.