Boboter
Loading...
Searching...
No Matches
colorsensor_registers.inc.h
Go to the documentation of this file.
1
7
8static constexpr uint8_t COMMAND_BIT = 0x80;
9static constexpr uint8_t AUTO_INC = 0x20; // Type: 01 (Auto-increment protocol)
10
11static constexpr uint8_t REG_ENABLE = 0x00;
12static constexpr uint8_t REG_ATIME = 0x01;
13static constexpr uint8_t REG_CONTROL = 0x0F; // Gain control
14static constexpr uint8_t REG_ID = 0x12; // ID register (should be TCS34725_DEVICE_ID)
15static constexpr uint8_t REG_CLEAR_LOW = 0x14;
16
17static constexpr uint8_t CMD_ENABLE_AEN = 0x02; // RGBC Enable
18static constexpr uint8_t CMD_ENABLE_PON = 0x01; // Power ON
19
20static constexpr uint8_t GAIN_1X = 0x00;
21static constexpr uint8_t GAIN_4X = 0x01;
22static constexpr uint8_t GAIN_16X = 0x02;
23static constexpr uint8_t GAIN_60X = 0x03;