#include <Loom_AS7262.h>
|
| Loom_AS7262 (Manager &man, bool useMux=false, int addr=0x49, uint8_t gain=1, uint8_t mode=3, uint8_t integration_time=50) |
|
| I2CDevice (const char *modName) |
|
bool | checkDeviceConnection () |
|
| Module (const char *modName) |
|
void | setModuleName (const char *modName) |
|
virtual const char * | getModuleName () |
|
virtual void | printModuleName (const char *message) |
|
virtual void | initialize ()=0 |
|
virtual void | measure ()=0 |
|
virtual void | package ()=0 |
|
virtual void | power_up ()=0 |
|
virtual void | power_down ()=0 |
|
virtual void | display_data () |
|
|
bool | needsReinit = false |
|
bool | moduleInitialized = true |
|
int | module_address = -1 |
|
AS7262 Color sensor
- Author
- Will Richards
◆ Loom_AS7262()
Loom_AS7262::Loom_AS7262 |
( |
Manager & |
man, |
|
|
bool |
useMux = false , |
|
|
int |
addr = 0x49 , |
|
|
uint8_t |
gain = 1 , |
|
|
uint8_t |
mode = 3 , |
|
|
uint8_t |
integration_time = 50 |
|
) |
| |
Constructs a new AS7262 sensor
- Parameters
-
man | Reference to the manager that is used to universally package all data |
useMux | If this module will be using the mux |
addr | I2C address that is assigned to the sensor |
gain | Gain level |
mode | Read Mode: 0("4 channels out of 6"), 1("Different 4 channels out of 6"), 2("All 6 channels continuously"), 3("One-shot reading of all channels") |
integration_time | Integration time (time will be 2.8ms * [integration value]) |
◆ initialize()
void Loom_AS7262::initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ measure()
void Loom_AS7262::measure |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ package()
void Loom_AS7262::package |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ power_down()
void Loom_AS7262::power_down |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ power_up()
void Loom_AS7262::power_up |
( |
| ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files:
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_AS7262/Loom_AS7262.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Sensors/I2C/Loom_AS7262/Loom_AS7262.cpp