Compare commits
No commits in common. "main" and "gh-pages" have entirely different histories.
|
|
@ -1,13 +0,0 @@
|
|||
Language: Cpp
|
||||
BasedOnStyle: Google
|
||||
IndentWidth: 2
|
||||
ColumnLimit: 80
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
BinPackArguments: true
|
||||
BinPackParameters: true
|
||||
BreakBeforeBraces: Attach
|
||||
DerivePointerAlignment: false
|
||||
PointerAlignment: Left
|
||||
SpacesBeforeTrailingComments: 1
|
||||
46
.github/ISSUE_TEMPLATE.md
vendored
|
|
@ -1,46 +0,0 @@
|
|||
Thank you for opening an issue on an Adafruit Arduino library repository. To
|
||||
improve the speed of resolution please review the following guidelines and
|
||||
common troubleshooting steps below before creating the issue:
|
||||
|
||||
- **Do not use GitHub issues for troubleshooting projects and issues.** Instead use
|
||||
the forums at http://forums.adafruit.com to ask questions and troubleshoot why
|
||||
something isn't working as expected. In many cases the problem is a common issue
|
||||
that you will more quickly receive help from the forum community. GitHub issues
|
||||
are meant for known defects in the code. If you don't know if there is a defect
|
||||
in the code then start with troubleshooting on the forum first.
|
||||
|
||||
- **If following a tutorial or guide be sure you didn't miss a step.** Carefully
|
||||
check all of the steps and commands to run have been followed. Consult the
|
||||
forum if you're unsure or have questions about steps in a guide/tutorial.
|
||||
|
||||
- **For Arduino projects check these very common issues to ensure they don't apply**:
|
||||
|
||||
- For uploading sketches or communicating with the board make sure you're using
|
||||
a **USB data cable** and **not** a **USB charge-only cable**. It is sometimes
|
||||
very hard to tell the difference between a data and charge cable! Try using the
|
||||
cable with other devices or swapping to another cable to confirm it is not
|
||||
the problem.
|
||||
|
||||
- **Be sure you are supplying adequate power to the board.** Check the specs of
|
||||
your board and plug in an external power supply. In many cases just
|
||||
plugging a board into your computer is not enough to power it and other
|
||||
peripherals.
|
||||
|
||||
- **Double check all soldering joints and connections.** Flakey connections
|
||||
cause many mysterious problems. See the [guide to excellent soldering](https://learn.adafruit.com/adafruit-guide-excellent-soldering/tools) for examples of good solder joints.
|
||||
|
||||
- **Ensure you are using an official Arduino or Adafruit board.** We can't
|
||||
guarantee a clone board will have the same functionality and work as expected
|
||||
with this code and don't support them.
|
||||
|
||||
If you're sure this issue is a defect in the code and checked the steps above
|
||||
please fill in the following fields to provide enough troubleshooting information.
|
||||
You may delete the guideline and text above to just leave the following details:
|
||||
|
||||
- Arduino board: **INSERT ARDUINO BOARD NAME/TYPE HERE**
|
||||
|
||||
- Arduino IDE version (found in Arduino -> About Arduino menu): **INSERT ARDUINO
|
||||
VERSION HERE**
|
||||
|
||||
- List the steps to reproduce the problem below (if possible attach a sketch or
|
||||
copy the sketch code in too): **LIST REPRO STEPS BELOW**
|
||||
26
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
|
@ -1,26 +0,0 @@
|
|||
Thank you for creating a pull request to contribute to Adafruit's GitHub code!
|
||||
Before you open the request please review the following guidelines and tips to
|
||||
help it be more easily integrated:
|
||||
|
||||
- **Describe the scope of your change--i.e. what the change does and what parts
|
||||
of the code were modified.** This will help us understand any risks of integrating
|
||||
the code.
|
||||
|
||||
- **Describe any known limitations with your change.** For example if the change
|
||||
doesn't apply to a supported platform of the library please mention it.
|
||||
|
||||
- **Please run any tests or examples that can exercise your modified code.** We
|
||||
strive to not break users of the code and running tests/examples helps with this
|
||||
process.
|
||||
|
||||
Thank you again for contributing! We will try to test and integrate the change
|
||||
as soon as we can, but be aware we have many GitHub repositories to manage and
|
||||
can't immediately respond to every request. There is no need to bump or check in
|
||||
on a pull request (it will clutter the discussion of the request).
|
||||
|
||||
Also don't be worried if the request is closed or not integrated--sometimes the
|
||||
priorities of Adafruit's GitHub code (education, ease of use) might not match the
|
||||
priorities of the pull request. Don't fret, the open source community thrives on
|
||||
forks and GitHub makes it easy to keep your changes in a forked repo.
|
||||
|
||||
After reviewing the guidelines above you can delete this text from the pull request.
|
||||
33
.github/workflows/githubci.yml
vendored
|
|
@ -1,33 +0,0 @@
|
|||
name: Arduino Library CI
|
||||
|
||||
on: [pull_request, push, repository_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
repository: adafruit/ci-arduino
|
||||
path: ci
|
||||
|
||||
- name: pre-install
|
||||
run: bash ci/actions_install.sh
|
||||
|
||||
- name: clang
|
||||
run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
|
||||
|
||||
- name: doxygen
|
||||
env:
|
||||
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
|
||||
PRETTYNAME : "Adafruit OPT4048 Arduino Library"
|
||||
PRESERVE_FOLDERS: "webserial"
|
||||
run: bash ci/doxy_gen_and_deploy.sh
|
||||
|
||||
- name: test platforms
|
||||
run: python3 ci/build_platform.py main_platforms
|
||||
1
.nojekyll
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
1073
Adafruit_OPT4048.cpp
|
|
@ -1,202 +0,0 @@
|
|||
/*!
|
||||
* @file Adafruit_OPT4048.h
|
||||
*
|
||||
* Arduino library for the OPT4048 High Speed High Precision Tristimulus XYZ
|
||||
* Color Sensor.
|
||||
*
|
||||
* This is a library for the Adafruit OPT4048 breakout
|
||||
* ----> https://www.adafruit.com/products/6334
|
||||
*
|
||||
* Adafruit invests time and resources providing this open source code,
|
||||
* please support Adafruit and open-source hardware by purchasing
|
||||
* products from Adafruit!
|
||||
*
|
||||
* Written by Limor Fried/Ladyada for Adafruit Industries.
|
||||
*
|
||||
* MIT license, all text here must be included in any redistribution.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef ADAFRUIT_OPT4048_H
|
||||
#define ADAFRUIT_OPT4048_H
|
||||
|
||||
#include <Adafruit_BusIO_Register.h>
|
||||
#include <Adafruit_I2CDevice.h>
|
||||
#include <Wire.h>
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
#define OPT4048_DEFAULT_ADDR \
|
||||
0x44 //!< Default I2C address (ADDR pin connected to GND)
|
||||
|
||||
/**
|
||||
* @brief Available range settings for the OPT4048 sensor
|
||||
*
|
||||
* Full-scale light level ranges as described in datasheet page 29.
|
||||
*/
|
||||
typedef enum {
|
||||
OPT4048_RANGE_2K_LUX = 0, ///< 2.2 klux
|
||||
OPT4048_RANGE_4K_LUX = 1, ///< 4.5 klux
|
||||
OPT4048_RANGE_9K_LUX = 2, ///< 9 klux
|
||||
OPT4048_RANGE_18K_LUX = 3, ///< 18 klux
|
||||
OPT4048_RANGE_36K_LUX = 4, ///< 36 klux
|
||||
OPT4048_RANGE_72K_LUX = 5, ///< 72 klux
|
||||
OPT4048_RANGE_144K_LUX = 6, ///< 144 klux
|
||||
OPT4048_RANGE_AUTO = 12 ///< Auto-range
|
||||
} opt4048_range_t;
|
||||
|
||||
/**
|
||||
* @brief Available conversion time settings for the OPT4048 sensor
|
||||
*
|
||||
* These control the device conversion time per channel as described in
|
||||
* datasheet page 29.
|
||||
*/
|
||||
typedef enum {
|
||||
OPT4048_CONVERSION_TIME_600US = 0, ///< 600 microseconds
|
||||
OPT4048_CONVERSION_TIME_1MS = 1, ///< 1 millisecond
|
||||
OPT4048_CONVERSION_TIME_1_8MS = 2, ///< 1.8 milliseconds
|
||||
OPT4048_CONVERSION_TIME_3_4MS = 3, ///< 3.4 milliseconds
|
||||
OPT4048_CONVERSION_TIME_6_5MS = 4, ///< 6.5 milliseconds
|
||||
OPT4048_CONVERSION_TIME_12_7MS = 5, ///< 12.7 milliseconds
|
||||
OPT4048_CONVERSION_TIME_25MS = 6, ///< 25 milliseconds
|
||||
OPT4048_CONVERSION_TIME_50MS = 7, ///< 50 milliseconds
|
||||
OPT4048_CONVERSION_TIME_100MS = 8, ///< 100 milliseconds
|
||||
OPT4048_CONVERSION_TIME_200MS = 9, ///< 200 milliseconds
|
||||
OPT4048_CONVERSION_TIME_400MS = 10, ///< 400 milliseconds
|
||||
OPT4048_CONVERSION_TIME_800MS = 11 ///< 800 milliseconds
|
||||
} opt4048_conversion_time_t;
|
||||
|
||||
/**
|
||||
* @brief Available operating mode settings for the OPT4048 sensor
|
||||
*
|
||||
* Controls the device mode of operation as described in datasheet page 29.
|
||||
*/
|
||||
typedef enum {
|
||||
OPT4048_MODE_POWERDOWN = 0, ///< Power-down mode
|
||||
OPT4048_MODE_AUTO_ONESHOT = 1, ///< Forced auto-range one-shot mode
|
||||
OPT4048_MODE_ONESHOT = 2, ///< One-shot mode
|
||||
OPT4048_MODE_CONTINUOUS = 3 ///< Continuous mode
|
||||
} opt4048_mode_t;
|
||||
|
||||
/**
|
||||
* @brief Available fault count settings for the OPT4048 sensor
|
||||
*
|
||||
* Controls how many consecutive fault events are needed to trigger an
|
||||
* interrupt.
|
||||
*/
|
||||
typedef enum {
|
||||
OPT4048_FAULT_COUNT_1 = 0, ///< 1 fault count (default)
|
||||
OPT4048_FAULT_COUNT_2 = 1, ///< 2 consecutive fault counts
|
||||
OPT4048_FAULT_COUNT_4 = 2, ///< 4 consecutive fault counts
|
||||
OPT4048_FAULT_COUNT_8 = 3 ///< 8 consecutive fault counts
|
||||
} opt4048_fault_count_t;
|
||||
|
||||
/**
|
||||
* @brief Interrupt configuration settings for the OPT4048 sensor
|
||||
*
|
||||
* Controls the interrupt mechanism after end of conversion.
|
||||
*/
|
||||
typedef enum {
|
||||
OPT4048_INT_CFG_SMBUS_ALERT = 0, ///< SMBUS Alert
|
||||
OPT4048_INT_CFG_DATA_READY_NEXT = 1, ///< INT Pin data ready for next channel
|
||||
OPT4048_INT_CFG_DATA_READY_ALL = 3 ///< INT Pin data ready for all channels
|
||||
} opt4048_int_cfg_t;
|
||||
|
||||
// Register addresses
|
||||
#define OPT4048_REG_CH0_MSB 0x00 //!< X channel MSB register
|
||||
#define OPT4048_REG_CH0_LSB 0x01 //!< X channel LSB register
|
||||
#define OPT4048_REG_CH1_MSB 0x02 //!< Y channel MSB register
|
||||
#define OPT4048_REG_CH1_LSB 0x03 //!< Y channel LSB register
|
||||
#define OPT4048_REG_CH2_MSB 0x04 //!< Z channel MSB register
|
||||
#define OPT4048_REG_CH2_LSB 0x05 //!< Z channel LSB register
|
||||
#define OPT4048_REG_CH3_MSB 0x06 //!< W channel MSB register
|
||||
#define OPT4048_REG_CH3_LSB 0x07 //!< W channel LSB register
|
||||
#define OPT4048_REG_THRESHOLD_LOW 0x08 //!< Low threshold register
|
||||
#define OPT4048_REG_THRESHOLD_HIGH 0x09 //!< High threshold register
|
||||
#define OPT4048_REG_CONFIG 0x0A //!< Configuration register
|
||||
#define OPT4048_REG_THRESHOLD_CFG 0x0B //!< Threshold configuration register
|
||||
#define OPT4048_REG_STATUS 0x0C //!< Status register
|
||||
#define OPT4048_REG_DEVICE_ID 0x11 //!< Device ID register
|
||||
|
||||
// Status register (0x0C) bit flags
|
||||
#define OPT4048_FLAG_L 0x01 //!< Flag low - measurement smaller than threshold
|
||||
#define OPT4048_FLAG_H 0x02 //!< Flag high - measurement larger than threshold
|
||||
#define OPT4048_FLAG_CONVERSION_READY 0x04 //!< Conversion ready
|
||||
#define OPT4048_FLAG_OVERLOAD 0x08 //!< Overflow condition
|
||||
|
||||
/**
|
||||
@brief Class that stores state and functions for interacting with the OPT4048
|
||||
sensor.
|
||||
*/
|
||||
class Adafruit_OPT4048 {
|
||||
public:
|
||||
Adafruit_OPT4048();
|
||||
~Adafruit_OPT4048();
|
||||
|
||||
/**
|
||||
* @brief Initialize the sensor with given I2C address and Wire instance
|
||||
*
|
||||
* @param addr I2C address, defaults to OPT4048_DEFAULT_ADDR
|
||||
* @param wire Pointer to TwoWire instance, defaults to &Wire
|
||||
* @return true on success, false on failure
|
||||
*/
|
||||
bool begin(uint8_t addr = OPT4048_DEFAULT_ADDR, TwoWire* wire = &Wire);
|
||||
|
||||
/**
|
||||
* @brief Read all four channels, verify CRC, and return raw ADC code values
|
||||
*
|
||||
* @param ch0 Pointer to store channel 0 (X) value
|
||||
* @param ch1 Pointer to store channel 1 (Y) value
|
||||
* @param ch2 Pointer to store channel 2 (Z) value
|
||||
* @param ch3 Pointer to store channel 3 (W) value
|
||||
* @return true if successful, false otherwise
|
||||
*/
|
||||
bool getChannelsRaw(uint32_t* ch0, uint32_t* ch1, uint32_t* ch2,
|
||||
uint32_t* ch3);
|
||||
|
||||
bool setThresholdLow(uint32_t thl);
|
||||
uint32_t getThresholdLow(void);
|
||||
bool setThresholdHigh(uint32_t thh);
|
||||
uint32_t getThresholdHigh(void);
|
||||
bool setQuickWake(bool enable);
|
||||
bool getQuickWake(void);
|
||||
bool setRange(opt4048_range_t range);
|
||||
opt4048_range_t getRange(void);
|
||||
bool setConversionTime(opt4048_conversion_time_t convTime);
|
||||
opt4048_conversion_time_t getConversionTime(void);
|
||||
bool setMode(opt4048_mode_t mode);
|
||||
opt4048_mode_t getMode(void);
|
||||
bool setInterruptLatch(bool latch);
|
||||
bool getInterruptLatch(void);
|
||||
bool setInterruptPolarity(bool activeHigh);
|
||||
bool getInterruptPolarity(void);
|
||||
bool setFaultCount(opt4048_fault_count_t count);
|
||||
opt4048_fault_count_t getFaultCount(void);
|
||||
bool setThresholdChannel(uint8_t channel);
|
||||
uint8_t getThresholdChannel(void);
|
||||
bool setInterruptDirection(bool activeHigh);
|
||||
bool getInterruptDirection(void);
|
||||
bool setInterruptConfig(opt4048_int_cfg_t config);
|
||||
opt4048_int_cfg_t getInterruptConfig(void);
|
||||
uint8_t getFlags(void);
|
||||
bool getCIE(double* CIEx, double* CIEy, double* lux);
|
||||
|
||||
/**
|
||||
* @brief Calculate the correlated color temperature (CCT) in Kelvin
|
||||
*
|
||||
* Uses the McCamy's approximation formula to calculate CCT from CIE 1931 x,y
|
||||
* coordinates. This is accurate for color temperatures between 2000K and
|
||||
* 30000K.
|
||||
*
|
||||
* @param CIEx The CIE x chromaticity coordinate
|
||||
* @param CIEy The CIE y chromaticity coordinate
|
||||
* @return The calculated color temperature in Kelvin
|
||||
*/
|
||||
double calculateColorTemperature(double CIEx, double CIEy);
|
||||
|
||||
private:
|
||||
Adafruit_I2CDevice* i2c_dev;
|
||||
void encodeValue(uint32_t value, uint8_t* exp, uint32_t* mant);
|
||||
};
|
||||
|
||||
#endif // ADAFRUIT_OPT4048_H
|
||||
60
README.md
|
|
@ -1,60 +0,0 @@
|
|||
# Adafruit OPT4048 Library [](https://github.com/adafruit/Adafruit_OPT4048/actions)[](http://adafruit.github.io/Adafruit_OPT4048/html/index.html)
|
||||
|
||||
This is an Arduino library for the Adafruit OPT4048 breakout board, a high-speed, high-precision tristimulus XYZ color sensor.
|
||||
|
||||
## About the OPT4048
|
||||
|
||||
The [OPT4048](https://www.adafruit.com/products/6334) is a high-precision, tristimulus XYZ color sensor that provides accurate color measurements by using an integrated CIE1931 XYZ filter technology.
|
||||
|
||||
Key features:
|
||||
* Four-channel sensor (X, Y, Z, clear)
|
||||
* High-precision color measurements with CIE1931 filter technology
|
||||
* Wide dynamic range with auto-ranging capability
|
||||
* Programmable interrupt with high and low thresholds
|
||||
* Adjustable conversion time (600μs to 800ms per channel)
|
||||
* Measures color temperature, illuminance, and chromaticity
|
||||
* I²C interface
|
||||
|
||||
## Dependencies
|
||||
|
||||
This library depends on the [Adafruit BusIO](https://github.com/adafruit/Adafruit_BusIO) library for I²C communication.
|
||||
|
||||
## Installation
|
||||
|
||||
You can install this library through the Arduino Library Manager. Search for "Adafruit OPT4048" and install the latest version.
|
||||
|
||||
To manually install:
|
||||
1. Download the .zip file from GitHub
|
||||
2. In the Arduino IDE: Sketch -> Include Library -> Add .ZIP Library
|
||||
|
||||
## Hardware
|
||||
|
||||
* [Adafruit OPT4048 - High Speed Tristimulus XYZ Color Sensor Breakout](https://www.adafruit.com/products/6334)
|
||||
|
||||
## Examples
|
||||
|
||||
The library includes several examples demonstrating various features:
|
||||
|
||||
* **opt4048_basictest**: Basic usage with continuous readings
|
||||
* **opt4048_fulltest**: Demonstrates all sensor configurations
|
||||
* **opt4048_intpin**: Using the interrupt pin for data-ready notifications
|
||||
* **opt4048_oneshot**: One-shot measurement mode for low power applications
|
||||
|
||||
## Library Features
|
||||
|
||||
* Initialize the sensor with custom I²C address and Wire interface
|
||||
* Configure measurement settings (range, conversion time, operating mode)
|
||||
* Set up and use the interrupt system
|
||||
* Read raw channel data from all four sensors
|
||||
* Calculate CIE color coordinates (x, y) and illuminance (lux)
|
||||
* Determine color temperature in Kelvin
|
||||
|
||||
## Documentation
|
||||
|
||||
For more information on using this library, check out the [examples](/examples) folder.
|
||||
|
||||
Full documentation of the OPT4048 sensor can be found in the [datasheet](https://www.ti.com/lit/ds/symlink/opt4048.pdf).
|
||||
|
||||
## License
|
||||
|
||||
This library is released under an MIT license. See the included LICENSE file for details.
|
||||
|
|
@ -1,127 +0,0 @@
|
|||
# Adafruit Community Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as
|
||||
contributors and leaders pledge to making participation in our project and
|
||||
our community a harassment-free experience for everyone, regardless of age, body
|
||||
size, disability, ethnicity, gender identity and expression, level or type of
|
||||
experience, education, socio-economic status, nationality, personal appearance,
|
||||
race, religion, or sexual identity and orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
We are committed to providing a friendly, safe and welcoming environment for
|
||||
all.
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
* Be kind and courteous to others
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Collaborating with other community members
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and sexual attention or advances
|
||||
* The use of inappropriate images, including in a community member's avatar
|
||||
* The use of inappropriate language, including in a community member's nickname
|
||||
* Any spamming, flaming, baiting or other attention-stealing behavior
|
||||
* Excessive or unwelcome helping; answering outside the scope of the question
|
||||
asked
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate
|
||||
|
||||
The goal of the standards and moderation guidelines outlined here is to build
|
||||
and maintain a respectful community. We ask that you don’t just aim to be
|
||||
"technically unimpeachable", but rather try to be your best self.
|
||||
|
||||
We value many things beyond technical expertise, including collaboration and
|
||||
supporting others within our community. Providing a positive experience for
|
||||
other community members can have a much more significant impact than simply
|
||||
providing the correct answer.
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project leaders are responsible for clarifying the standards of acceptable
|
||||
behavior and are expected to take appropriate and fair corrective action in
|
||||
response to any instances of unacceptable behavior.
|
||||
|
||||
Project leaders have the right and responsibility to remove, edit, or
|
||||
reject messages, comments, commits, code, issues, and other contributions
|
||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||
permanently any community member for other behaviors that they deem
|
||||
inappropriate, threatening, offensive, or harmful.
|
||||
|
||||
## Moderation
|
||||
|
||||
Instances of behaviors that violate the Adafruit Community Code of Conduct
|
||||
may be reported by any member of the community. Community members are
|
||||
encouraged to report these situations, including situations they witness
|
||||
involving other community members.
|
||||
|
||||
You may report in the following ways:
|
||||
|
||||
In any situation, you may send an email to <support@adafruit.com>.
|
||||
|
||||
On the Adafruit Discord, you may send an open message from any channel
|
||||
to all Community Helpers by tagging @community helpers. You may also send an
|
||||
open message from any channel, or a direct message to @kattni#1507,
|
||||
@tannewt#4653, @Dan Halbert#1614, @cater#2442, @sommersoft#0222, or
|
||||
@Andon#8175.
|
||||
|
||||
Email and direct message reports will be kept confidential.
|
||||
|
||||
In situations on Discord where the issue is particularly egregious, possibly
|
||||
illegal, requires immediate action, or violates the Discord terms of service,
|
||||
you should also report the message directly to Discord.
|
||||
|
||||
These are the steps for upholding our community’s standards of conduct.
|
||||
|
||||
1. Any member of the community may report any situation that violates the
|
||||
Adafruit Community Code of Conduct. All reports will be reviewed and
|
||||
investigated.
|
||||
2. If the behavior is an egregious violation, the community member who
|
||||
committed the violation may be banned immediately, without warning.
|
||||
3. Otherwise, moderators will first respond to such behavior with a warning.
|
||||
4. Moderators follow a soft "three strikes" policy - the community member may
|
||||
be given another chance, if they are receptive to the warning and change their
|
||||
behavior.
|
||||
5. If the community member is unreceptive or unreasonable when warned by a
|
||||
moderator, or the warning goes unheeded, they may be banned for a first or
|
||||
second offense. Repeated offenses will result in the community member being
|
||||
banned.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct and the enforcement policies listed above apply to all
|
||||
Adafruit Community venues. This includes but is not limited to any community
|
||||
spaces (both public and private), the entire Adafruit Discord server, and
|
||||
Adafruit GitHub repositories. Examples of Adafruit Community spaces include
|
||||
but are not limited to meet-ups, audio chats on the Adafruit Discord, or
|
||||
interaction at a conference.
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces
|
||||
when an individual is representing the project or its community. As a community
|
||||
member, you are representing our community, and are expected to behave
|
||||
accordingly.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 1.4, available at
|
||||
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>,
|
||||
and the [Rust Code of Conduct](https://www.rust-lang.org/en-US/conduct.html).
|
||||
|
||||
For other projects adopting the Adafruit Community Code of
|
||||
Conduct, please contact the maintainers of those projects for enforcement.
|
||||
If you wish to use this code of conduct for your own project, consider
|
||||
explicitly mentioning your moderation policy or making a copy with your
|
||||
own moderation policy so as to avoid confusion.
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
/*!
|
||||
* @file test_opt4048.ino
|
||||
*
|
||||
* A basic demo for using the OPT4048 tristimulus XYZ color sensor
|
||||
*
|
||||
* This example reads the sensor values from all four channels (X, Y, Z, W),
|
||||
* demonstrates setting and getting threshold values, and displays the results.
|
||||
*/
|
||||
|
||||
#include <Wire.h>
|
||||
#include "Adafruit_OPT4048.h"
|
||||
|
||||
// Create sensor object
|
||||
Adafruit_OPT4048 sensor;
|
||||
|
||||
void setup() {
|
||||
// Initialize serial communication
|
||||
Serial.begin(115200);
|
||||
|
||||
// Wait for serial monitor to open
|
||||
while (!Serial) {
|
||||
delay(10);
|
||||
}
|
||||
|
||||
Serial.println(F("Adafruit OPT4048 Tristimulus XYZ Color Sensor Test"));
|
||||
|
||||
// Initialize the sensor
|
||||
if (!sensor.begin()) {
|
||||
Serial.println(F("Failed to find OPT4048 chip"));
|
||||
while (1) {
|
||||
delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
Serial.println(F("OPT4048 sensor found!"));
|
||||
|
||||
sensor.setRange(OPT4048_RANGE_AUTO); // Set range to auto
|
||||
sensor.setConversionTime(OPT4048_CONVERSION_TIME_100MS); // Set conversion time to 100ms
|
||||
sensor.setMode(OPT4048_MODE_CONTINUOUS); // Set operating mode to continuous
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// Calculate and display CIE chromaticity coordinates and lux
|
||||
double CIEx, CIEy, lux;
|
||||
if (sensor.getCIE(&CIEx, &CIEy, &lux)) {
|
||||
Serial.println(F("\nCIE Coordinates:"));
|
||||
Serial.print(F("CIE x: ")); Serial.println(CIEx, 8);
|
||||
Serial.print(F("CIE y: ")); Serial.println(CIEy, 8);
|
||||
Serial.print(F("Lux: ")); Serial.println(lux, 4);
|
||||
|
||||
// Calculate and display color temperature
|
||||
double colorTemp = sensor.calculateColorTemperature(CIEx, CIEy);
|
||||
Serial.print(F("Color Temperature: "));
|
||||
Serial.print(colorTemp, 2);
|
||||
Serial.println(F(" K"));
|
||||
} else {
|
||||
Serial.println(F("Error reading sensor data"));
|
||||
}
|
||||
|
||||
delay(1000); // Read once per second
|
||||
}
|
||||
|
|
@ -1,238 +0,0 @@
|
|||
/*!
|
||||
* @file test_opt4048.ino
|
||||
*
|
||||
* A basic demo for using the OPT4048 tristimulus XYZ color sensor
|
||||
*
|
||||
* This example reads the sensor values from all four channels (X, Y, Z, W),
|
||||
* demonstrates setting and getting threshold values, and displays the results.
|
||||
*/
|
||||
|
||||
#include <Wire.h>
|
||||
#include "Adafruit_OPT4048.h"
|
||||
|
||||
// Create sensor object
|
||||
Adafruit_OPT4048 sensor;
|
||||
|
||||
void setup() {
|
||||
// Initialize serial communication
|
||||
Serial.begin(115200);
|
||||
|
||||
// Wait for serial monitor to open
|
||||
while (!Serial) {
|
||||
delay(10);
|
||||
}
|
||||
|
||||
Serial.println(F("Adafruit OPT4048 Tristimulus XYZ Color Sensor Test"));
|
||||
|
||||
// Initialize the sensor
|
||||
if (!sensor.begin()) {
|
||||
Serial.println(F("Failed to find OPT4048 chip"));
|
||||
while (1) {
|
||||
delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
Serial.println(F("OPT4048 sensor found!"));
|
||||
|
||||
// Set low and high thresholds for interrupts
|
||||
uint32_t lowThreshold = 1000;
|
||||
uint32_t highThreshold = 10000;
|
||||
|
||||
Serial.print(F("Setting low threshold to: "));
|
||||
Serial.println(lowThreshold);
|
||||
sensor.setThresholdLow(lowThreshold);
|
||||
|
||||
Serial.print(F("Setting high threshold to: "));
|
||||
Serial.println(highThreshold);
|
||||
sensor.setThresholdHigh(highThreshold);
|
||||
|
||||
// Read back the thresholds to verify
|
||||
uint32_t readLowThreshold = sensor.getThresholdLow();
|
||||
uint32_t readHighThreshold = sensor.getThresholdHigh();
|
||||
|
||||
Serial.print(F("Read back low threshold: "));
|
||||
Serial.println(readLowThreshold);
|
||||
Serial.print(F("Read back high threshold: "));
|
||||
Serial.println(readHighThreshold);
|
||||
|
||||
// Enable Quick Wake feature
|
||||
Serial.println(F("\nEnabling Quick Wake feature..."));
|
||||
sensor.setQuickWake(true);
|
||||
|
||||
// Read back Quick Wake status
|
||||
bool quickWakeStatus = sensor.getQuickWake();
|
||||
Serial.print(F("Quick Wake status: "));
|
||||
Serial.println(quickWakeStatus ? F("Enabled") : F("Disabled"));
|
||||
|
||||
// Set range to auto
|
||||
Serial.println(F("\nSetting range to Auto..."));
|
||||
sensor.setRange(OPT4048_RANGE_AUTO);
|
||||
|
||||
// Read back range setting
|
||||
opt4048_range_t currentRange = sensor.getRange();
|
||||
Serial.print(F("Current range setting: "));
|
||||
switch (currentRange) {
|
||||
case OPT4048_RANGE_2K_LUX: Serial.println(F("2.2 klux")); break;
|
||||
case OPT4048_RANGE_4K_LUX: Serial.println(F("4.5 klux")); break;
|
||||
case OPT4048_RANGE_9K_LUX: Serial.println(F("9 klux")); break;
|
||||
case OPT4048_RANGE_18K_LUX: Serial.println(F("18 klux")); break;
|
||||
case OPT4048_RANGE_36K_LUX: Serial.println(F("36 klux")); break;
|
||||
case OPT4048_RANGE_72K_LUX: Serial.println(F("72 klux")); break;
|
||||
case OPT4048_RANGE_144K_LUX: Serial.println(F("144 klux")); break;
|
||||
case OPT4048_RANGE_AUTO: Serial.println(F("Auto")); break;
|
||||
default: Serial.println(F("Unknown")); break;
|
||||
}
|
||||
|
||||
// Set conversion time to 100ms
|
||||
Serial.println(F("\nSetting conversion time to 100ms..."));
|
||||
sensor.setConversionTime(OPT4048_CONVERSION_TIME_100MS);
|
||||
|
||||
// Read back conversion time setting
|
||||
opt4048_conversion_time_t currentConvTime = sensor.getConversionTime();
|
||||
Serial.print(F("Current conversion time setting: "));
|
||||
switch (currentConvTime) {
|
||||
case OPT4048_CONVERSION_TIME_600US: Serial.println(F("600 microseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_1MS: Serial.println(F("1 millisecond")); break;
|
||||
case OPT4048_CONVERSION_TIME_1_8MS: Serial.println(F("1.8 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_3_4MS: Serial.println(F("3.4 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_6_5MS: Serial.println(F("6.5 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_12_7MS: Serial.println(F("12.7 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_25MS: Serial.println(F("25 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_50MS: Serial.println(F("50 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_100MS: Serial.println(F("100 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_200MS: Serial.println(F("200 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_400MS: Serial.println(F("400 milliseconds")); break;
|
||||
case OPT4048_CONVERSION_TIME_800MS: Serial.println(F("800 milliseconds")); break;
|
||||
default: Serial.println(F("Unknown")); break;
|
||||
}
|
||||
|
||||
// Set operating mode to continuous
|
||||
Serial.println(F("\nSetting operating mode to Continuous..."));
|
||||
sensor.setMode(OPT4048_MODE_CONTINUOUS);
|
||||
|
||||
// Read back operating mode setting
|
||||
opt4048_mode_t currentMode = sensor.getMode();
|
||||
Serial.print(F("Current operating mode: "));
|
||||
switch (currentMode) {
|
||||
case OPT4048_MODE_POWERDOWN: Serial.println(F("Power-down")); break;
|
||||
case OPT4048_MODE_AUTO_ONESHOT: Serial.println(F("Forced auto-range one-shot")); break;
|
||||
case OPT4048_MODE_ONESHOT: Serial.println(F("One-shot")); break;
|
||||
case OPT4048_MODE_CONTINUOUS: Serial.println(F("Continuous")); break;
|
||||
default: Serial.println(F("Unknown")); break;
|
||||
}
|
||||
|
||||
// Configure interrupt settings
|
||||
Serial.println(F("\nConfiguring interrupt settings..."));
|
||||
sensor.setInterruptLatch(true); // Use latched interrupts
|
||||
sensor.setInterruptPolarity(true); // Use active-high interrupts
|
||||
|
||||
// Read back interrupt settings
|
||||
bool latchMode = sensor.getInterruptLatch();
|
||||
bool polarityMode = sensor.getInterruptPolarity();
|
||||
|
||||
Serial.print(F("Interrupt latch mode: "));
|
||||
Serial.println(latchMode ? F("Latched") : F("Transparent"));
|
||||
|
||||
Serial.print(F("Interrupt polarity: "));
|
||||
Serial.println(polarityMode ? F("Active-high") : F("Active-low"));
|
||||
|
||||
// Configure fault count
|
||||
Serial.println(F("\nSetting fault count to 4 consecutive faults..."));
|
||||
sensor.setFaultCount(OPT4048_FAULT_COUNT_4);
|
||||
|
||||
// Read back fault count setting
|
||||
opt4048_fault_count_t faultCount = sensor.getFaultCount();
|
||||
Serial.print(F("Fault count setting: "));
|
||||
switch (faultCount) {
|
||||
case OPT4048_FAULT_COUNT_1: Serial.println(F("1 fault count")); break;
|
||||
case OPT4048_FAULT_COUNT_2: Serial.println(F("2 consecutive fault counts")); break;
|
||||
case OPT4048_FAULT_COUNT_4: Serial.println(F("4 consecutive fault counts")); break;
|
||||
case OPT4048_FAULT_COUNT_8: Serial.println(F("8 consecutive fault counts")); break;
|
||||
default: Serial.println(F("Unknown")); break;
|
||||
}
|
||||
|
||||
// Configure threshold channel
|
||||
Serial.println(F("\nSetting threshold channel to Channel 1 (Y)..."));
|
||||
sensor.setThresholdChannel(1);
|
||||
|
||||
// Read back threshold channel setting
|
||||
uint8_t threshChannel = sensor.getThresholdChannel();
|
||||
Serial.print(F("Threshold channel setting: Channel "));
|
||||
Serial.print(threshChannel);
|
||||
switch (threshChannel) {
|
||||
case 0: Serial.println(F(" (X)")); break;
|
||||
case 1: Serial.println(F(" (Y)")); break;
|
||||
case 2: Serial.println(F(" (Z)")); break;
|
||||
case 3: Serial.println(F(" (W)")); break;
|
||||
default: Serial.println(F(" (Unknown)")); break;
|
||||
}
|
||||
|
||||
// Configure interrupt configuration
|
||||
Serial.println(F("\nSetting interrupt configuration to data ready for all channels..."));
|
||||
sensor.setInterruptConfig(OPT4048_INT_CFG_DATA_READY_ALL);
|
||||
|
||||
// Read back interrupt configuration setting
|
||||
opt4048_int_cfg_t intConfig = sensor.getInterruptConfig();
|
||||
Serial.print(F("Interrupt configuration: "));
|
||||
switch (intConfig) {
|
||||
case OPT4048_INT_CFG_SMBUS_ALERT: Serial.println(F("SMBUS Alert")); break;
|
||||
case OPT4048_INT_CFG_DATA_READY_NEXT: Serial.println(F("INT Pin data ready for next channel")); break;
|
||||
case OPT4048_INT_CFG_DATA_READY_ALL: Serial.println(F("INT Pin data ready for all channels")); break;
|
||||
default: Serial.println(F("Unknown")); break;
|
||||
}
|
||||
Serial.println();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
uint32_t x, y, z, w;
|
||||
|
||||
// Read all four channels from the sensor (raw ADC values)
|
||||
if (sensor.getChannelsRaw(&x, &y, &z, &w)) {
|
||||
Serial.println(F("Channel readings (raw values):"));
|
||||
Serial.print(F("X (CH0): ")); Serial.println(x);
|
||||
Serial.print(F("Y (CH1): ")); Serial.println(y);
|
||||
Serial.print(F("Z (CH2): ")); Serial.println(z);
|
||||
Serial.print(F("W (CH3): ")); Serial.println(w);
|
||||
|
||||
// Calculate and display CIE chromaticity coordinates and lux
|
||||
double CIEx, CIEy, lux;
|
||||
if (sensor.getCIE(&CIEx, &CIEy, &lux)) {
|
||||
Serial.println(F("\nCIE Coordinates:"));
|
||||
Serial.print(F("CIE x: ")); Serial.println(CIEx, 8);
|
||||
Serial.print(F("CIE y: ")); Serial.println(CIEy, 8);
|
||||
Serial.print(F("Lux: ")); Serial.println(lux, 4);
|
||||
|
||||
// Calculate and display color temperature
|
||||
double colorTemp = sensor.calculateColorTemperature(CIEx, CIEy);
|
||||
Serial.print(F("Color Temperature: "));
|
||||
Serial.print(colorTemp, 2);
|
||||
Serial.println(F(" K"));
|
||||
} else {
|
||||
Serial.println(F("\nError calculating CIE coordinates"));
|
||||
}
|
||||
|
||||
// Read and print status flags
|
||||
uint8_t flags = sensor.getFlags();
|
||||
Serial.println(F("\nStatus Flags:"));
|
||||
if (flags & OPT4048_FLAG_L) {
|
||||
Serial.println(F("- Measurement below low threshold"));
|
||||
}
|
||||
if (flags & OPT4048_FLAG_H) {
|
||||
Serial.println(F("- Measurement above high threshold"));
|
||||
}
|
||||
if (flags & OPT4048_FLAG_CONVERSION_READY) {
|
||||
Serial.println(F("- Conversion complete"));
|
||||
}
|
||||
if (flags & OPT4048_FLAG_OVERLOAD) {
|
||||
Serial.println(F("- Overflow condition detected"));
|
||||
}
|
||||
if (flags == 0) {
|
||||
Serial.println(F("- No flags set"));
|
||||
}
|
||||
Serial.println();
|
||||
} else {
|
||||
Serial.println(F("Error reading sensor data"));
|
||||
}
|
||||
|
||||
delay(1000); // Read once per second
|
||||
}
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
/*!
|
||||
* @file test_opt4048.ino
|
||||
*
|
||||
* A basic demo for using the OPT4048 tristimulus XYZ color sensor
|
||||
*
|
||||
* This example reads the sensor values from all four channels (X, Y, Z, W),
|
||||
* demonstrates setting and getting threshold values, and displays the results.
|
||||
*/
|
||||
|
||||
#include <Wire.h>
|
||||
#include "Adafruit_OPT4048.h"
|
||||
|
||||
Adafruit_OPT4048 sensor;
|
||||
|
||||
#define INT_PIN 2 // use any pin because we're just going to check the pin status!
|
||||
|
||||
// we'll track time between data reads
|
||||
uint32_t timestamp = 0;
|
||||
|
||||
void setup() {
|
||||
// Initialize serial communication
|
||||
Serial.begin(115200);
|
||||
|
||||
// Wait for serial monitor to open
|
||||
while (!Serial) {
|
||||
delay(10);
|
||||
}
|
||||
|
||||
Serial.println(F("Adafruit OPT4048 Tristimulus XYZ Color Sensor Test"));
|
||||
|
||||
// Initialize the sensor
|
||||
if (!sensor.begin()) {
|
||||
Serial.println(F("Failed to find OPT4048 chip"));
|
||||
while (1) {
|
||||
delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
Serial.println(F("OPT4048 sensor found!"));
|
||||
|
||||
sensor.setRange(OPT4048_RANGE_AUTO); // Set range to auto
|
||||
sensor.setConversionTime(OPT4048_CONVERSION_TIME_100MS); // Set conversion time to 100ms
|
||||
sensor.setMode(OPT4048_MODE_CONTINUOUS); // Set operating mode to continuous
|
||||
|
||||
pinMode(INT_PIN, INPUT_PULLUP);
|
||||
attachInterrupt(digitalPinToInterrupt(INT_PIN), optIRQ, RISING);
|
||||
timestamp = millis();
|
||||
}
|
||||
|
||||
volatile bool newDataAvail = false;
|
||||
void optIRQ() {
|
||||
newDataAvail = true;
|
||||
}
|
||||
|
||||
void loop() {
|
||||
double CIEx, CIEy, lux;
|
||||
|
||||
if (newDataAvail) {
|
||||
if (! sensor.getCIE(&CIEx, &CIEy, &lux)) {
|
||||
Serial.println(F("Error reading sensor data"));
|
||||
} else {
|
||||
Serial.println(F("\nCIE Coordinates:"));
|
||||
Serial.print(F("CIE x: ")); Serial.println(CIEx, 8);
|
||||
Serial.print(F("CIE y: ")); Serial.println(CIEy, 8);
|
||||
Serial.print(F("Lux: ")); Serial.println(lux, 4);
|
||||
|
||||
// Calculate and display color temperature
|
||||
double colorTemp = sensor.calculateColorTemperature(CIEx, CIEy);
|
||||
Serial.print(F("Color Temperature: "));
|
||||
Serial.print(colorTemp, 2);
|
||||
Serial.println(F(" K"));
|
||||
Serial.print("Time since last read: ");
|
||||
Serial.print(millis() - timestamp);
|
||||
Serial.println("ms");
|
||||
timestamp = millis();
|
||||
}
|
||||
newDataAvail = false;
|
||||
}
|
||||
|
||||
delay(10); // a small delay
|
||||
}
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
/*!
|
||||
* @file test_opt4048.ino
|
||||
*
|
||||
* A basic demo for using the OPT4048 tristimulus XYZ color sensor
|
||||
*
|
||||
* This example reads the sensor values from all four channels (X, Y, Z, W),
|
||||
* demonstrates setting and getting threshold values, and displays the results.
|
||||
*/
|
||||
|
||||
#include <Wire.h>
|
||||
#include "Adafruit_OPT4048.h"
|
||||
|
||||
Adafruit_OPT4048 sensor;
|
||||
|
||||
// we'll track time between data reads
|
||||
uint32_t timestamp = 0;
|
||||
|
||||
void setup() {
|
||||
// Initialize serial communication
|
||||
Serial.begin(115200);
|
||||
|
||||
// Wait for serial monitor to open
|
||||
while (!Serial) {
|
||||
delay(10);
|
||||
}
|
||||
|
||||
Serial.println(F("Adafruit OPT4048 Tristimulus XYZ Color Sensor Test"));
|
||||
|
||||
// Initialize the sensor
|
||||
if (!sensor.begin()) {
|
||||
Serial.println(F("Failed to find OPT4048 chip"));
|
||||
while (1) {
|
||||
delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
Serial.println(F("OPT4048 sensor found!"));
|
||||
|
||||
sensor.setRange(OPT4048_RANGE_AUTO); // Set range to auto
|
||||
sensor.setConversionTime(OPT4048_CONVERSION_TIME_200MS); // Set conversion time to 200ms
|
||||
sensor.setMode(OPT4048_MODE_AUTO_ONESHOT); // Set operating mode to auto-range one shot
|
||||
|
||||
timestamp = millis();
|
||||
}
|
||||
|
||||
|
||||
void loop() {
|
||||
if (sensor.getMode() == OPT4048_MODE_POWERDOWN) {
|
||||
// ok we finished the reading!
|
||||
double CIEx, CIEy, lux;
|
||||
|
||||
if (! sensor.getCIE(&CIEx, &CIEy, &lux)) {
|
||||
Serial.println(F("Error reading sensor data"));
|
||||
} else {
|
||||
Serial.println(F("\nCIE Coordinates:"));
|
||||
Serial.print(F("CIE x: ")); Serial.println(CIEx, 8);
|
||||
Serial.print(F("CIE y: ")); Serial.println(CIEy, 8);
|
||||
Serial.print(F("Lux: ")); Serial.println(lux, 4);
|
||||
|
||||
// Calculate and display color temperature
|
||||
double colorTemp = sensor.calculateColorTemperature(CIEx, CIEy);
|
||||
Serial.print(F("Color Temperature: "));
|
||||
Serial.print(colorTemp, 2);
|
||||
Serial.println(F(" K"));
|
||||
Serial.print("Time since last read: ");
|
||||
Serial.print(millis() - timestamp);
|
||||
Serial.println("ms");
|
||||
timestamp = millis();
|
||||
}
|
||||
|
||||
// start a new reading!
|
||||
sensor.setMode(OPT4048_MODE_AUTO_ONESHOT); // Set operating mode to auto-range one shot
|
||||
}
|
||||
|
||||
delay(10); // a small delay
|
||||
}
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
/*!
|
||||
* @file opt4048_webserial.ino
|
||||
*
|
||||
* This example reads color data from the OPT4048 sensor and outputs it
|
||||
* in a format suitable for displaying on a web page using Web Serial API.
|
||||
*
|
||||
* It continuously measures CIE x,y coordinates, lux, and color temperature.
|
||||
*
|
||||
* This sketch works with the web interface in the /webserial directory of the
|
||||
* gh-pages branch: https://github.com/adafruit/Adafruit_OPT4048/tree/gh-pages,
|
||||
* which can be accessed at: https://adafruit.github.io/Adafruit_OPT4048/webserial/
|
||||
*/
|
||||
|
||||
#include <Wire.h>
|
||||
#include "Adafruit_OPT4048.h"
|
||||
|
||||
// Create sensor object
|
||||
Adafruit_OPT4048 sensor;
|
||||
|
||||
// Set how often to read data (in milliseconds)
|
||||
const unsigned long READ_INTERVAL = 100;
|
||||
unsigned long lastReadTime = 0;
|
||||
|
||||
void setup() {
|
||||
// Initialize serial communication at 115200 baud
|
||||
Serial.begin(115200);
|
||||
|
||||
// Wait briefly for serial to connect (not needed for all boards)
|
||||
delay(100);
|
||||
|
||||
Serial.println(F("Adafruit OPT4048 WebSerial Example"));
|
||||
Serial.println(F("This sketch works with the OPT4048 CIE Color Plotter web page"));
|
||||
|
||||
// Initialize the sensor
|
||||
if (!sensor.begin()) {
|
||||
Serial.println(F("Failed to find OPT4048 chip"));
|
||||
while (1) {
|
||||
delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
Serial.println(F("OPT4048 sensor found!"));
|
||||
|
||||
// Set sensor configuration
|
||||
sensor.setRange(OPT4048_RANGE_AUTO); // Auto-range for best results across lighting conditions
|
||||
sensor.setConversionTime(OPT4048_CONVERSION_TIME_100MS); // 100ms conversion time
|
||||
sensor.setMode(OPT4048_MODE_CONTINUOUS); // Continuous mode
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// Only read at the specified interval
|
||||
unsigned long currentTime = millis();
|
||||
if (currentTime - lastReadTime >= READ_INTERVAL) {
|
||||
lastReadTime = currentTime;
|
||||
|
||||
// Calculate and display CIE chromaticity coordinates and lux
|
||||
double CIEx, CIEy, lux;
|
||||
if (sensor.getCIE(&CIEx, &CIEy, &lux)) {
|
||||
// Print the values in a format that can be easily parsed by the web page
|
||||
Serial.println(F("---CIE Data---"));
|
||||
Serial.print(F("CIE x: ")); Serial.println(CIEx, 8);
|
||||
Serial.print(F("CIE y: ")); Serial.println(CIEy, 8);
|
||||
Serial.print(F("Lux: ")); Serial.println(lux, 4);
|
||||
|
||||
// Calculate and display color temperature
|
||||
double colorTemp = sensor.calculateColorTemperature(CIEx, CIEy);
|
||||
Serial.print(F("Color Temperature: "));
|
||||
Serial.print(colorTemp, 2);
|
||||
Serial.println(F(" K"));
|
||||
Serial.println(F("-------------"));
|
||||
} else {
|
||||
Serial.println(F("Error reading sensor data"));
|
||||
}
|
||||
}
|
||||
|
||||
// Check for any incoming serial commands
|
||||
if (Serial.available() > 0) {
|
||||
String command = Serial.readStringUntil('\n');
|
||||
command.trim();
|
||||
|
||||
// Process any commands here if needed
|
||||
}
|
||||
}
|
||||
74
html/_adafruit___o_p_t4048_8cpp.html
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Adafruit_OPT4048.cpp File Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Adafruit_OPT4048.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include "<a class="el" href="_adafruit___o_p_t4048_8h_source.html">Adafruit_OPT4048.h</a>"</code><br />
|
||||
</div></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
389
html/_adafruit___o_p_t4048_8h.html
Normal file
|
|
@ -0,0 +1,389 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Adafruit_OPT4048.h File Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#define-members">Macros</a> |
|
||||
<a href="#enum-members">Enumerations</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Adafruit_OPT4048.h File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <Adafruit_BusIO_Register.h></code><br />
|
||||
<code>#include <Adafruit_I2CDevice.h></code><br />
|
||||
<code>#include <Wire.h></code><br />
|
||||
<code>#include "Arduino.h"</code><br />
|
||||
</div>
|
||||
<p><a href="_adafruit___o_p_t4048_8h_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Class that stores state and functions for interacting with the OPT4048 sensor. <a href="class_adafruit___o_p_t4048.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
||||
Macros</h2></td></tr>
|
||||
<tr class="memitem:a24b9df5417d6f7f988029835551053d9"><td class="memItemLeft" align="right" valign="top"><a id="a24b9df5417d6f7f988029835551053d9"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a24b9df5417d6f7f988029835551053d9">OPT4048_DEFAULT_ADDR</a>   0x44</td></tr>
|
||||
<tr class="memdesc:a24b9df5417d6f7f988029835551053d9"><td class="mdescLeft"> </td><td class="mdescRight">Default I2C address (ADDR pin connected to GND) <br /></td></tr>
|
||||
<tr class="separator:a24b9df5417d6f7f988029835551053d9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0291dda71c43184a5804fd7d1c2e11ea"><td class="memItemLeft" align="right" valign="top"><a id="a0291dda71c43184a5804fd7d1c2e11ea"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a0291dda71c43184a5804fd7d1c2e11ea">OPT4048_REG_CH0_MSB</a>   0x00</td></tr>
|
||||
<tr class="memdesc:a0291dda71c43184a5804fd7d1c2e11ea"><td class="mdescLeft"> </td><td class="mdescRight">X channel MSB register. <br /></td></tr>
|
||||
<tr class="separator:a0291dda71c43184a5804fd7d1c2e11ea"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7c59516d5c62692c501c14775cfddfd7"><td class="memItemLeft" align="right" valign="top"><a id="a7c59516d5c62692c501c14775cfddfd7"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a7c59516d5c62692c501c14775cfddfd7">OPT4048_REG_CH0_LSB</a>   0x01</td></tr>
|
||||
<tr class="memdesc:a7c59516d5c62692c501c14775cfddfd7"><td class="mdescLeft"> </td><td class="mdescRight">X channel LSB register. <br /></td></tr>
|
||||
<tr class="separator:a7c59516d5c62692c501c14775cfddfd7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3f4a8dd52267438315c7a653f788ed31"><td class="memItemLeft" align="right" valign="top"><a id="a3f4a8dd52267438315c7a653f788ed31"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a3f4a8dd52267438315c7a653f788ed31">OPT4048_REG_CH1_MSB</a>   0x02</td></tr>
|
||||
<tr class="memdesc:a3f4a8dd52267438315c7a653f788ed31"><td class="mdescLeft"> </td><td class="mdescRight">Y channel MSB register. <br /></td></tr>
|
||||
<tr class="separator:a3f4a8dd52267438315c7a653f788ed31"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a31b63b1e271b1f80f19cd09e64c82fb5"><td class="memItemLeft" align="right" valign="top"><a id="a31b63b1e271b1f80f19cd09e64c82fb5"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a31b63b1e271b1f80f19cd09e64c82fb5">OPT4048_REG_CH1_LSB</a>   0x03</td></tr>
|
||||
<tr class="memdesc:a31b63b1e271b1f80f19cd09e64c82fb5"><td class="mdescLeft"> </td><td class="mdescRight">Y channel LSB register. <br /></td></tr>
|
||||
<tr class="separator:a31b63b1e271b1f80f19cd09e64c82fb5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3b640817091f03124006796bfb204958"><td class="memItemLeft" align="right" valign="top"><a id="a3b640817091f03124006796bfb204958"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a3b640817091f03124006796bfb204958">OPT4048_REG_CH2_MSB</a>   0x04</td></tr>
|
||||
<tr class="memdesc:a3b640817091f03124006796bfb204958"><td class="mdescLeft"> </td><td class="mdescRight">Z channel MSB register. <br /></td></tr>
|
||||
<tr class="separator:a3b640817091f03124006796bfb204958"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acd34ea5e994cd9b05f7cfdab0f30c453"><td class="memItemLeft" align="right" valign="top"><a id="acd34ea5e994cd9b05f7cfdab0f30c453"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#acd34ea5e994cd9b05f7cfdab0f30c453">OPT4048_REG_CH2_LSB</a>   0x05</td></tr>
|
||||
<tr class="memdesc:acd34ea5e994cd9b05f7cfdab0f30c453"><td class="mdescLeft"> </td><td class="mdescRight">Z channel LSB register. <br /></td></tr>
|
||||
<tr class="separator:acd34ea5e994cd9b05f7cfdab0f30c453"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad8a6c51e663e61abdbd722573ff9ba90"><td class="memItemLeft" align="right" valign="top"><a id="ad8a6c51e663e61abdbd722573ff9ba90"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#ad8a6c51e663e61abdbd722573ff9ba90">OPT4048_REG_CH3_MSB</a>   0x06</td></tr>
|
||||
<tr class="memdesc:ad8a6c51e663e61abdbd722573ff9ba90"><td class="mdescLeft"> </td><td class="mdescRight">W channel MSB register. <br /></td></tr>
|
||||
<tr class="separator:ad8a6c51e663e61abdbd722573ff9ba90"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae2ffd720414d74877d4dc9e773288012"><td class="memItemLeft" align="right" valign="top"><a id="ae2ffd720414d74877d4dc9e773288012"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#ae2ffd720414d74877d4dc9e773288012">OPT4048_REG_CH3_LSB</a>   0x07</td></tr>
|
||||
<tr class="memdesc:ae2ffd720414d74877d4dc9e773288012"><td class="mdescLeft"> </td><td class="mdescRight">W channel LSB register. <br /></td></tr>
|
||||
<tr class="separator:ae2ffd720414d74877d4dc9e773288012"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aaa927e57780f716b06bddd7e63353430"><td class="memItemLeft" align="right" valign="top"><a id="aaa927e57780f716b06bddd7e63353430"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#aaa927e57780f716b06bddd7e63353430">OPT4048_REG_THRESHOLD_LOW</a>   0x08</td></tr>
|
||||
<tr class="memdesc:aaa927e57780f716b06bddd7e63353430"><td class="mdescLeft"> </td><td class="mdescRight">Low threshold register. <br /></td></tr>
|
||||
<tr class="separator:aaa927e57780f716b06bddd7e63353430"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0c566680e00551be7822d0aae370e0e5"><td class="memItemLeft" align="right" valign="top"><a id="a0c566680e00551be7822d0aae370e0e5"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a0c566680e00551be7822d0aae370e0e5">OPT4048_REG_THRESHOLD_HIGH</a>   0x09</td></tr>
|
||||
<tr class="memdesc:a0c566680e00551be7822d0aae370e0e5"><td class="mdescLeft"> </td><td class="mdescRight">High threshold register. <br /></td></tr>
|
||||
<tr class="separator:a0c566680e00551be7822d0aae370e0e5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af369d8378e6a584b3904b9fe2e20a914"><td class="memItemLeft" align="right" valign="top"><a id="af369d8378e6a584b3904b9fe2e20a914"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#af369d8378e6a584b3904b9fe2e20a914">OPT4048_REG_CONFIG</a>   0x0A</td></tr>
|
||||
<tr class="memdesc:af369d8378e6a584b3904b9fe2e20a914"><td class="mdescLeft"> </td><td class="mdescRight">Configuration register. <br /></td></tr>
|
||||
<tr class="separator:af369d8378e6a584b3904b9fe2e20a914"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abe72aace5fc2cc98d1c488c610b81cfc"><td class="memItemLeft" align="right" valign="top"><a id="abe72aace5fc2cc98d1c488c610b81cfc"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#abe72aace5fc2cc98d1c488c610b81cfc">OPT4048_REG_THRESHOLD_CFG</a>   0x0B</td></tr>
|
||||
<tr class="memdesc:abe72aace5fc2cc98d1c488c610b81cfc"><td class="mdescLeft"> </td><td class="mdescRight">Threshold configuration register. <br /></td></tr>
|
||||
<tr class="separator:abe72aace5fc2cc98d1c488c610b81cfc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aaaaf34616dba5838cc1c2d9e2d14da58"><td class="memItemLeft" align="right" valign="top"><a id="aaaaf34616dba5838cc1c2d9e2d14da58"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#aaaaf34616dba5838cc1c2d9e2d14da58">OPT4048_REG_STATUS</a>   0x0C</td></tr>
|
||||
<tr class="memdesc:aaaaf34616dba5838cc1c2d9e2d14da58"><td class="mdescLeft"> </td><td class="mdescRight">Status register. <br /></td></tr>
|
||||
<tr class="separator:aaaaf34616dba5838cc1c2d9e2d14da58"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af24ffb74b5ac58f611ab1eb1d3e566c8"><td class="memItemLeft" align="right" valign="top"><a id="af24ffb74b5ac58f611ab1eb1d3e566c8"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#af24ffb74b5ac58f611ab1eb1d3e566c8">OPT4048_REG_DEVICE_ID</a>   0x11</td></tr>
|
||||
<tr class="memdesc:af24ffb74b5ac58f611ab1eb1d3e566c8"><td class="mdescLeft"> </td><td class="mdescRight">Device ID register. <br /></td></tr>
|
||||
<tr class="separator:af24ffb74b5ac58f611ab1eb1d3e566c8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4d88d887ce9dd763151c462f48e2b85b"><td class="memItemLeft" align="right" valign="top"><a id="a4d88d887ce9dd763151c462f48e2b85b"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a4d88d887ce9dd763151c462f48e2b85b">OPT4048_FLAG_L</a>   0x01</td></tr>
|
||||
<tr class="memdesc:a4d88d887ce9dd763151c462f48e2b85b"><td class="mdescLeft"> </td><td class="mdescRight">Flag low - measurement smaller than threshold. <br /></td></tr>
|
||||
<tr class="separator:a4d88d887ce9dd763151c462f48e2b85b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1800bf887505d69aca2ef81fb6b48c72"><td class="memItemLeft" align="right" valign="top"><a id="a1800bf887505d69aca2ef81fb6b48c72"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a1800bf887505d69aca2ef81fb6b48c72">OPT4048_FLAG_H</a>   0x02</td></tr>
|
||||
<tr class="memdesc:a1800bf887505d69aca2ef81fb6b48c72"><td class="mdescLeft"> </td><td class="mdescRight">Flag high - measurement larger than threshold. <br /></td></tr>
|
||||
<tr class="separator:a1800bf887505d69aca2ef81fb6b48c72"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a54493b3cb5890e82e0c52ff90f9148e1"><td class="memItemLeft" align="right" valign="top"><a id="a54493b3cb5890e82e0c52ff90f9148e1"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a54493b3cb5890e82e0c52ff90f9148e1">OPT4048_FLAG_CONVERSION_READY</a>   0x04</td></tr>
|
||||
<tr class="memdesc:a54493b3cb5890e82e0c52ff90f9148e1"><td class="mdescLeft"> </td><td class="mdescRight">Conversion ready. <br /></td></tr>
|
||||
<tr class="separator:a54493b3cb5890e82e0c52ff90f9148e1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:affc0fda7ef4d4280a30c4b56e73066da"><td class="memItemLeft" align="right" valign="top"><a id="affc0fda7ef4d4280a30c4b56e73066da"></a>
|
||||
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#affc0fda7ef4d4280a30c4b56e73066da">OPT4048_FLAG_OVERLOAD</a>   0x08</td></tr>
|
||||
<tr class="memdesc:affc0fda7ef4d4280a30c4b56e73066da"><td class="mdescLeft"> </td><td class="mdescRight">Overflow condition. <br /></td></tr>
|
||||
<tr class="separator:affc0fda7ef4d4280a30c4b56e73066da"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
|
||||
Enumerations</h2></td></tr>
|
||||
<tr class="memitem:a63c71421f2ca143d500cd4ceb6e159a6"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6">opt4048_range_t</a> { <br />
|
||||
  <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a2580a4bdacdec6b416b6dcefab49e3ca">OPT4048_RANGE_2K_LUX</a> = 0,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a0d2cb44d9e9ea108b261005a1b427a83">OPT4048_RANGE_4K_LUX</a> = 1,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a18f08586ade9554767af32c5ac735ce5">OPT4048_RANGE_9K_LUX</a> = 2,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a4c27f7cd90c16d2cb1bd44ba30ca8725">OPT4048_RANGE_18K_LUX</a> = 3,
|
||||
<br />
|
||||
  <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ab0732fb104a07e32ceeab03e5fcdc025">OPT4048_RANGE_36K_LUX</a> = 4,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a1bbf7d10d2eb4a891bb031e5afc65032">OPT4048_RANGE_72K_LUX</a> = 5,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6af5e061afab5348caa285fbddab8de202">OPT4048_RANGE_144K_LUX</a> = 6,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ae6c39df2e61ecf82ca241e30c3cc2b47">OPT4048_RANGE_AUTO</a> = 12
|
||||
<br />
|
||||
}<tr class="memdesc:a63c71421f2ca143d500cd4ceb6e159a6"><td class="mdescLeft"> </td><td class="mdescRight">Available range settings for the OPT4048 sensor. <a href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6">More...</a><br /></td></tr>
|
||||
</td></tr>
|
||||
<tr class="separator:a63c71421f2ca143d500cd4ceb6e159a6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0e85862310e6809dc650cf199d9842b5"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5">opt4048_conversion_time_t</a> { <br />
|
||||
  <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a6aef03ff6ed6ec6bc17e1d3bb13c3761">OPT4048_CONVERSION_TIME_600US</a> = 0,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a559521fe1598a18c07e54b7de7a58b57">OPT4048_CONVERSION_TIME_1MS</a> = 1,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a83cae9096c18f4bd7026574b01abcaf6">OPT4048_CONVERSION_TIME_1_8MS</a> = 2,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ae1f19403ad03e608e840b5be9ce452c5">OPT4048_CONVERSION_TIME_3_4MS</a> = 3,
|
||||
<br />
|
||||
  <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a0bd0037e6f73eac6ed5672dec1124078">OPT4048_CONVERSION_TIME_6_5MS</a> = 4,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a4136096c4352732fd9d4d015e499b97f">OPT4048_CONVERSION_TIME_12_7MS</a> = 5,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a23b05a3826ce8c78014cf48e160c2a12">OPT4048_CONVERSION_TIME_25MS</a> = 6,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a88045d757f47782ef7f6752ef646e392">OPT4048_CONVERSION_TIME_50MS</a> = 7,
|
||||
<br />
|
||||
  <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5aea6b88a4c001b21ddd5b87775afab1f3">OPT4048_CONVERSION_TIME_100MS</a> = 8,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a3bd503ea3bb29110d9cc4600b811552b">OPT4048_CONVERSION_TIME_200MS</a> = 9,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ad9c22be226aa413630f5517e1dcb8656">OPT4048_CONVERSION_TIME_400MS</a> = 10,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ab3a480a56273c1c8a1540818df88de64">OPT4048_CONVERSION_TIME_800MS</a> = 11
|
||||
<br />
|
||||
}<tr class="memdesc:a0e85862310e6809dc650cf199d9842b5"><td class="mdescLeft"> </td><td class="mdescRight">Available conversion time settings for the OPT4048 sensor. <a href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5">More...</a><br /></td></tr>
|
||||
</td></tr>
|
||||
<tr class="separator:a0e85862310e6809dc650cf199d9842b5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a50ce1c4574b5ef231912f02ac0ae523b"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523b">opt4048_mode_t</a> { <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba6ffc6833673491fe6198f4777ec509c2">OPT4048_MODE_POWERDOWN</a> = 0,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba747145ee2972d2f80b847653438994cc">OPT4048_MODE_AUTO_ONESHOT</a> = 1,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baa82234530efa71b556e7103911e308e7">OPT4048_MODE_ONESHOT</a> = 2,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baf7006d6faf1a291ad6490c8c7db8b923">OPT4048_MODE_CONTINUOUS</a> = 3
|
||||
}<tr class="memdesc:a50ce1c4574b5ef231912f02ac0ae523b"><td class="mdescLeft"> </td><td class="mdescRight">Available operating mode settings for the OPT4048 sensor. <a href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523b">More...</a><br /></td></tr>
|
||||
</td></tr>
|
||||
<tr class="separator:a50ce1c4574b5ef231912f02ac0ae523b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2f948c8470a382a144be25f14dbd64e7"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7">opt4048_fault_count_t</a> { <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a5258243514b4c5c87dc74344cfa831ff">OPT4048_FAULT_COUNT_1</a> = 0,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7aadf95f15c6587b8074564e956c1de104">OPT4048_FAULT_COUNT_2</a> = 1,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a252e41d2cde44ae21788725f9f1c3736">OPT4048_FAULT_COUNT_4</a> = 2,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a00faf5f0f6d0a9408d87c5c26b728524">OPT4048_FAULT_COUNT_8</a> = 3
|
||||
}<tr class="memdesc:a2f948c8470a382a144be25f14dbd64e7"><td class="mdescLeft"> </td><td class="mdescRight">Available fault count settings for the OPT4048 sensor. <a href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7">More...</a><br /></td></tr>
|
||||
</td></tr>
|
||||
<tr class="separator:a2f948c8470a382a144be25f14dbd64e7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae5807cd78d1f3ea41e13f880230f9c24"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24">opt4048_int_cfg_t</a> { <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a1cfe4ee2e7435186fd27d643ac76de12">OPT4048_INT_CFG_SMBUS_ALERT</a> = 0,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a6ca5f5870b24caffce3a8e043af7cf71">OPT4048_INT_CFG_DATA_READY_NEXT</a> = 1,
|
||||
<a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a5cd9e856c2cd27b4b45a7a4e27bb9422">OPT4048_INT_CFG_DATA_READY_ALL</a> = 3
|
||||
}<tr class="memdesc:ae5807cd78d1f3ea41e13f880230f9c24"><td class="mdescLeft"> </td><td class="mdescRight">Interrupt configuration settings for the OPT4048 sensor. <a href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24">More...</a><br /></td></tr>
|
||||
</td></tr>
|
||||
<tr class="separator:ae5807cd78d1f3ea41e13f880230f9c24"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Arduino library for the OPT4048 High Speed High Precision Tristimulus XYZ Color Sensor.</p>
|
||||
<p>This is a library for the Adafruit OPT4048 breakout -—> <a href="https://www.adafruit.com/products/6334">https://www.adafruit.com/products/6334</a></p>
|
||||
<p>Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!</p>
|
||||
<p>Written by Limor Fried/Ladyada for Adafruit Industries.</p>
|
||||
<p>MIT license, all text here must be included in any redistribution. </p>
|
||||
</div><h2 class="groupheader">Enumeration Type Documentation</h2>
|
||||
<a id="a63c71421f2ca143d500cd4ceb6e159a6"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a63c71421f2ca143d500cd4ceb6e159a6">◆ </a></span>opt4048_range_t</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6">opt4048_range_t</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Available range settings for the OPT4048 sensor. </p>
|
||||
<p>Full-scale light level ranges as described in datasheet page 29. </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6a2580a4bdacdec6b416b6dcefab49e3ca"></a>OPT4048_RANGE_2K_LUX </td><td class="fielddoc"><p>2.2 klux </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6a0d2cb44d9e9ea108b261005a1b427a83"></a>OPT4048_RANGE_4K_LUX </td><td class="fielddoc"><p>4.5 klux </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6a18f08586ade9554767af32c5ac735ce5"></a>OPT4048_RANGE_9K_LUX </td><td class="fielddoc"><p>9 klux </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6a4c27f7cd90c16d2cb1bd44ba30ca8725"></a>OPT4048_RANGE_18K_LUX </td><td class="fielddoc"><p>18 klux </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6ab0732fb104a07e32ceeab03e5fcdc025"></a>OPT4048_RANGE_36K_LUX </td><td class="fielddoc"><p>36 klux </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6a1bbf7d10d2eb4a891bb031e5afc65032"></a>OPT4048_RANGE_72K_LUX </td><td class="fielddoc"><p>72 klux </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6af5e061afab5348caa285fbddab8de202"></a>OPT4048_RANGE_144K_LUX </td><td class="fielddoc"><p>144 klux </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a63c71421f2ca143d500cd4ceb6e159a6ae6c39df2e61ecf82ca241e30c3cc2b47"></a>OPT4048_RANGE_AUTO </td><td class="fielddoc"><p>Auto-range. </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0e85862310e6809dc650cf199d9842b5"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0e85862310e6809dc650cf199d9842b5">◆ </a></span>opt4048_conversion_time_t</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5">opt4048_conversion_time_t</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Available conversion time settings for the OPT4048 sensor. </p>
|
||||
<p>These control the device conversion time per channel as described in datasheet page 29. </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a6aef03ff6ed6ec6bc17e1d3bb13c3761"></a>OPT4048_CONVERSION_TIME_600US </td><td class="fielddoc"><p>600 microseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a559521fe1598a18c07e54b7de7a58b57"></a>OPT4048_CONVERSION_TIME_1MS </td><td class="fielddoc"><p>1 millisecond </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a83cae9096c18f4bd7026574b01abcaf6"></a>OPT4048_CONVERSION_TIME_1_8MS </td><td class="fielddoc"><p>1.8 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5ae1f19403ad03e608e840b5be9ce452c5"></a>OPT4048_CONVERSION_TIME_3_4MS </td><td class="fielddoc"><p>3.4 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a0bd0037e6f73eac6ed5672dec1124078"></a>OPT4048_CONVERSION_TIME_6_5MS </td><td class="fielddoc"><p>6.5 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a4136096c4352732fd9d4d015e499b97f"></a>OPT4048_CONVERSION_TIME_12_7MS </td><td class="fielddoc"><p>12.7 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a23b05a3826ce8c78014cf48e160c2a12"></a>OPT4048_CONVERSION_TIME_25MS </td><td class="fielddoc"><p>25 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a88045d757f47782ef7f6752ef646e392"></a>OPT4048_CONVERSION_TIME_50MS </td><td class="fielddoc"><p>50 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5aea6b88a4c001b21ddd5b87775afab1f3"></a>OPT4048_CONVERSION_TIME_100MS </td><td class="fielddoc"><p>100 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5a3bd503ea3bb29110d9cc4600b811552b"></a>OPT4048_CONVERSION_TIME_200MS </td><td class="fielddoc"><p>200 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5ad9c22be226aa413630f5517e1dcb8656"></a>OPT4048_CONVERSION_TIME_400MS </td><td class="fielddoc"><p>400 milliseconds </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a0e85862310e6809dc650cf199d9842b5ab3a480a56273c1c8a1540818df88de64"></a>OPT4048_CONVERSION_TIME_800MS </td><td class="fielddoc"><p>800 milliseconds </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a50ce1c4574b5ef231912f02ac0ae523b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a50ce1c4574b5ef231912f02ac0ae523b">◆ </a></span>opt4048_mode_t</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523b">opt4048_mode_t</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Available operating mode settings for the OPT4048 sensor. </p>
|
||||
<p>Controls the device mode of operation as described in datasheet page 29. </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a50ce1c4574b5ef231912f02ac0ae523ba6ffc6833673491fe6198f4777ec509c2"></a>OPT4048_MODE_POWERDOWN </td><td class="fielddoc"><p>Power-down mode. </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a50ce1c4574b5ef231912f02ac0ae523ba747145ee2972d2f80b847653438994cc"></a>OPT4048_MODE_AUTO_ONESHOT </td><td class="fielddoc"><p>Forced auto-range one-shot mode. </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a50ce1c4574b5ef231912f02ac0ae523baa82234530efa71b556e7103911e308e7"></a>OPT4048_MODE_ONESHOT </td><td class="fielddoc"><p>One-shot mode. </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a50ce1c4574b5ef231912f02ac0ae523baf7006d6faf1a291ad6490c8c7db8b923"></a>OPT4048_MODE_CONTINUOUS </td><td class="fielddoc"><p>Continuous mode. </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2f948c8470a382a144be25f14dbd64e7"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2f948c8470a382a144be25f14dbd64e7">◆ </a></span>opt4048_fault_count_t</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7">opt4048_fault_count_t</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Available fault count settings for the OPT4048 sensor. </p>
|
||||
<p>Controls how many consecutive fault events are needed to trigger an interrupt. </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a2f948c8470a382a144be25f14dbd64e7a5258243514b4c5c87dc74344cfa831ff"></a>OPT4048_FAULT_COUNT_1 </td><td class="fielddoc"><p>1 fault count (default) </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a2f948c8470a382a144be25f14dbd64e7aadf95f15c6587b8074564e956c1de104"></a>OPT4048_FAULT_COUNT_2 </td><td class="fielddoc"><p>2 consecutive fault counts </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a2f948c8470a382a144be25f14dbd64e7a252e41d2cde44ae21788725f9f1c3736"></a>OPT4048_FAULT_COUNT_4 </td><td class="fielddoc"><p>4 consecutive fault counts </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="a2f948c8470a382a144be25f14dbd64e7a00faf5f0f6d0a9408d87c5c26b728524"></a>OPT4048_FAULT_COUNT_8 </td><td class="fielddoc"><p>8 consecutive fault counts </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae5807cd78d1f3ea41e13f880230f9c24"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae5807cd78d1f3ea41e13f880230f9c24">◆ </a></span>opt4048_int_cfg_t</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24">opt4048_int_cfg_t</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Interrupt configuration settings for the OPT4048 sensor. </p>
|
||||
<p>Controls the interrupt mechanism after end of conversion. </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ae5807cd78d1f3ea41e13f880230f9c24a1cfe4ee2e7435186fd27d643ac76de12"></a>OPT4048_INT_CFG_SMBUS_ALERT </td><td class="fielddoc"><p>SMBUS Alert. </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="ae5807cd78d1f3ea41e13f880230f9c24a6ca5f5870b24caffce3a8e043af7cf71"></a>OPT4048_INT_CFG_DATA_READY_NEXT </td><td class="fielddoc"><p>INT Pin data ready for next channel. </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a id="ae5807cd78d1f3ea41e13f880230f9c24a5cd9e856c2cd27b4b45a7a4e27bb9422"></a>OPT4048_INT_CFG_DATA_READY_ALL </td><td class="fielddoc"><p>INT Pin data ready for all channels. </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
142
html/_adafruit___o_p_t4048_8h_source.html
Normal file
78
html/annotated.html
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Class List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Class List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
|
||||
<table class="directory">
|
||||
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_adafruit___o_p_t4048.html" target="_self">Adafruit_OPT4048</a></td><td class="desc">Class that stores state and functions for interacting with the OPT4048 sensor </td></tr>
|
||||
</table>
|
||||
</div><!-- directory -->
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
BIN
html/bc_s.png
Normal file
|
After Width: | Height: | Size: 676 B |
BIN
html/bdwn.png
Normal file
|
After Width: | Height: | Size: 147 B |
107
html/class_adafruit___o_p_t4048-members.html
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Adafruit_OPT4048 Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a79c9ee7616031e820a166c574e356ede">Adafruit_OPT4048</a>()</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#abf15f48ecf56df10c35e6c9cabb7f6bd">begin</a>(uint8_t addr=OPT4048_DEFAULT_ADDR, TwoWire *wire=&Wire)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a5d30f9f47efaaa8c5263e33def7f0be2">calculateColorTemperature</a>(double CIEx, double CIEy)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a4af02f9c732f4d8a385a72ee51f35423">getChannelsRaw</a>(uint32_t *ch0, uint32_t *ch1, uint32_t *ch2, uint32_t *ch3)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#adac0d3180839b6262894b7469e0b1646">getCIE</a>(double *CIEx, double *CIEy, double *lux)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#adcffc5f1598bbc50cbeb281166f3ca2d">getConversionTime</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a69bb5bf8c618cb9116e361f2f5b9d5af">getFaultCount</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a8362582a2aaac0ebaac8263cfb356b3a">getFlags</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a31fd1bed4356d6d2fa389dd808b73f6d">getInterruptConfig</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#aa6b9d8a8b9b73643b0c42931184f3a7b">getInterruptDirection</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#ae2ec3e102665ebcd34a69e1ab2d33599">getInterruptLatch</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a01cb0f0b4166f06c5b6e53cdc34dd194">getInterruptPolarity</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a0657dbc5d8fd0b678e307e2dfc6632a6">getMode</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#ac942c3c94267b8b1f4e83696e7ae8e3b">getQuickWake</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#af99ef450b96524fa1654a49fa94b84fd">getRange</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#ac0dfa59fc68e4d5b6c6e4380d72050a5">getThresholdChannel</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a54c16fac8ba0e8b51c2e5b5a3438a0b1">getThresholdHigh</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a0f09973b92e621a72d8fed96a8ac6a97">getThresholdLow</a>(void)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#aaacd0e41c62095b97f65a654bea2ca37">setConversionTime</a>(opt4048_conversion_time_t convTime)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#ae0c2eeb7c2aadaec9da0f641edb562a8">setFaultCount</a>(opt4048_fault_count_t count)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#ab937ea65dd3584036e6773851dcc21c0">setInterruptConfig</a>(opt4048_int_cfg_t config)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a97048ac8141b035f7deb39687bbf7b71">setInterruptDirection</a>(bool activeHigh)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#afd6cf304c800da685c07c4b8c7967446">setInterruptLatch</a>(bool latch)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a506f85c0048cdc55545ddbf5dc5ce3b4">setInterruptPolarity</a>(bool activeHigh)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a25338fa435c48cfe833ec36f2d803fca">setMode</a>(opt4048_mode_t mode)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a3c3ab74745cff112d085a650705d38b5">setQuickWake</a>(bool enable)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a5b0d1314f7ede263e7e36e4a640d5c08">setRange</a>(opt4048_range_t range)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#add62a763e5b252fbd055d6672277a5c3">setThresholdChannel</a>(uint8_t channel)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a6e7d630446f71b9f5095f882dbb8338c">setThresholdHigh</a>(uint32_t thh)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a06a189eb27c6f024327054a9ba478ee5">setThresholdLow</a>(uint32_t thl)</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html#a306bc65237da5a17fa5219cc2d598bae">~Adafruit_OPT4048</a>()</td><td class="entry"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
1006
html/class_adafruit___o_p_t4048.html
Normal file
82
html/classes.html
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Class Index</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Class Index</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="qindex"><a class="qindex" href="#letter_a">a</a></div>
|
||||
<table class="classindex">
|
||||
<tr><td rowspan="2" valign="bottom"><a name="letter_a"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  a  </div></td></tr></table>
|
||||
</td><td></td></tr>
|
||||
<tr><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="class_adafruit___o_p_t4048.html">Adafruit_OPT4048</a>   </td><td></td></tr>
|
||||
<tr><td></td><td></td></tr>
|
||||
</table>
|
||||
<div class="qindex"><a class="qindex" href="#letter_a">a</a></div>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
BIN
html/closed.png
Normal file
|
After Width: | Height: | Size: 132 B |
BIN
html/doc.png
Normal file
|
After Width: | Height: | Size: 746 B |
1596
html/doxygen.css
Normal file
BIN
html/doxygen.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
97
html/dynsections.js
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
function toggleVisibility(linkObj)
|
||||
{
|
||||
var base = $(linkObj).attr('id');
|
||||
var summary = $('#'+base+'-summary');
|
||||
var content = $('#'+base+'-content');
|
||||
var trigger = $('#'+base+'-trigger');
|
||||
var src=$(trigger).attr('src');
|
||||
if (content.is(':visible')===true) {
|
||||
content.hide();
|
||||
summary.show();
|
||||
$(linkObj).addClass('closed').removeClass('opened');
|
||||
$(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
|
||||
} else {
|
||||
content.show();
|
||||
summary.hide();
|
||||
$(linkObj).removeClass('closed').addClass('opened');
|
||||
$(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function updateStripes()
|
||||
{
|
||||
$('table.directory tr').
|
||||
removeClass('even').filter(':visible:even').addClass('even');
|
||||
}
|
||||
|
||||
function toggleLevel(level)
|
||||
{
|
||||
$('table.directory tr').each(function() {
|
||||
var l = this.id.split('_').length-1;
|
||||
var i = $('#img'+this.id.substring(3));
|
||||
var a = $('#arr'+this.id.substring(3));
|
||||
if (l<level+1) {
|
||||
i.removeClass('iconfopen iconfclosed').addClass('iconfopen');
|
||||
a.html('▼');
|
||||
$(this).show();
|
||||
} else if (l==level+1) {
|
||||
i.removeClass('iconfclosed iconfopen').addClass('iconfclosed');
|
||||
a.html('►');
|
||||
$(this).show();
|
||||
} else {
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
updateStripes();
|
||||
}
|
||||
|
||||
function toggleFolder(id)
|
||||
{
|
||||
// the clicked row
|
||||
var currentRow = $('#row_'+id);
|
||||
|
||||
// all rows after the clicked row
|
||||
var rows = currentRow.nextAll("tr");
|
||||
|
||||
var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
|
||||
|
||||
// only match elements AFTER this one (can't hide elements before)
|
||||
var childRows = rows.filter(function() { return this.id.match(re); });
|
||||
|
||||
// first row is visible we are HIDING
|
||||
if (childRows.filter(':first').is(':visible')===true) {
|
||||
// replace down arrow by right arrow for current row
|
||||
var currentRowSpans = currentRow.find("span");
|
||||
currentRowSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
|
||||
currentRowSpans.filter(".arrow").html('►');
|
||||
rows.filter("[id^=row_"+id+"]").hide(); // hide all children
|
||||
} else { // we are SHOWING
|
||||
// replace right arrow by down arrow for current row
|
||||
var currentRowSpans = currentRow.find("span");
|
||||
currentRowSpans.filter(".iconfclosed").removeClass("iconfclosed").addClass("iconfopen");
|
||||
currentRowSpans.filter(".arrow").html('▼');
|
||||
// replace down arrows by right arrows for child rows
|
||||
var childRowsSpans = childRows.find("span");
|
||||
childRowsSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
|
||||
childRowsSpans.filter(".arrow").html('►');
|
||||
childRows.show(); //show all children
|
||||
}
|
||||
updateStripes();
|
||||
}
|
||||
|
||||
|
||||
function toggleInherit(id)
|
||||
{
|
||||
var rows = $('tr.inherit.'+id);
|
||||
var img = $('tr.inherit_header.'+id+' img');
|
||||
var src = $(img).attr('src');
|
||||
if (rows.filter(':first').is(':visible')===true) {
|
||||
rows.css('display','none');
|
||||
$(img).attr('src',src.substring(0,src.length-8)+'closed.png');
|
||||
} else {
|
||||
rows.css('display','table-row'); // using show() causes jump in firefox
|
||||
$(img).attr('src',src.substring(0,src.length-10)+'open.png');
|
||||
}
|
||||
}
|
||||
|
||||
79
html/files.html
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: File List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">File List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock">Here is a list of all documented files with brief descriptions:</div><div class="directory">
|
||||
<table class="directory">
|
||||
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icondoc"></span><a class="el" href="_adafruit___o_p_t4048_8cpp.html" target="_self">Adafruit_OPT4048.cpp</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><a href="_adafruit___o_p_t4048_8h_source.html"><span class="icondoc"></span></a><a class="el" href="_adafruit___o_p_t4048_8h.html" target="_self">Adafruit_OPT4048.h</a></td><td class="desc"></td></tr>
|
||||
</table>
|
||||
</div><!-- directory -->
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
BIN
html/folderclosed.png
Normal file
|
After Width: | Height: | Size: 616 B |
BIN
html/folderopen.png
Normal file
|
After Width: | Height: | Size: 597 B |
186
html/functions.html
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Class Members</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="contents">
|
||||
<div class="textblock">Here is a list of all documented class members with links to the class documentation for each member:</div>
|
||||
|
||||
<h3><a id="index_a"></a>- a -</h3><ul>
|
||||
<li>Adafruit_OPT4048()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a79c9ee7616031e820a166c574e356ede">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_b"></a>- b -</h3><ul>
|
||||
<li>begin()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#abf15f48ecf56df10c35e6c9cabb7f6bd">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_c"></a>- c -</h3><ul>
|
||||
<li>calculateColorTemperature()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a5d30f9f47efaaa8c5263e33def7f0be2">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_g"></a>- g -</h3><ul>
|
||||
<li>getChannelsRaw()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a4af02f9c732f4d8a385a72ee51f35423">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getCIE()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#adac0d3180839b6262894b7469e0b1646">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getConversionTime()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#adcffc5f1598bbc50cbeb281166f3ca2d">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getFaultCount()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a69bb5bf8c618cb9116e361f2f5b9d5af">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getFlags()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a8362582a2aaac0ebaac8263cfb356b3a">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptConfig()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a31fd1bed4356d6d2fa389dd808b73f6d">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptDirection()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#aa6b9d8a8b9b73643b0c42931184f3a7b">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptLatch()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ae2ec3e102665ebcd34a69e1ab2d33599">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptPolarity()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a01cb0f0b4166f06c5b6e53cdc34dd194">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getMode()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a0657dbc5d8fd0b678e307e2dfc6632a6">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getQuickWake()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ac942c3c94267b8b1f4e83696e7ae8e3b">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getRange()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#af99ef450b96524fa1654a49fa94b84fd">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getThresholdChannel()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ac0dfa59fc68e4d5b6c6e4380d72050a5">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getThresholdHigh()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a54c16fac8ba0e8b51c2e5b5a3438a0b1">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getThresholdLow()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a0f09973b92e621a72d8fed96a8ac6a97">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_s"></a>- s -</h3><ul>
|
||||
<li>setConversionTime()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#aaacd0e41c62095b97f65a654bea2ca37">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setFaultCount()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ae0c2eeb7c2aadaec9da0f641edb562a8">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptConfig()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ab937ea65dd3584036e6773851dcc21c0">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptDirection()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a97048ac8141b035f7deb39687bbf7b71">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptLatch()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#afd6cf304c800da685c07c4b8c7967446">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptPolarity()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a506f85c0048cdc55545ddbf5dc5ce3b4">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setMode()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a25338fa435c48cfe833ec36f2d803fca">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setQuickWake()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a3c3ab74745cff112d085a650705d38b5">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setRange()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a5b0d1314f7ede263e7e36e4a640d5c08">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setThresholdChannel()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#add62a763e5b252fbd055d6672277a5c3">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setThresholdHigh()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a6e7d630446f71b9f5095f882dbb8338c">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setThresholdLow()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a06a189eb27c6f024327054a9ba478ee5">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_0x7e"></a>- ~ -</h3><ul>
|
||||
<li>~Adafruit_OPT4048()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a306bc65237da5a17fa5219cc2d598bae">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
186
html/functions_func.html
Normal file
|
|
@ -0,0 +1,186 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Class Members - Functions</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="contents">
|
||||
 
|
||||
|
||||
<h3><a id="index_a"></a>- a -</h3><ul>
|
||||
<li>Adafruit_OPT4048()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a79c9ee7616031e820a166c574e356ede">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_b"></a>- b -</h3><ul>
|
||||
<li>begin()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#abf15f48ecf56df10c35e6c9cabb7f6bd">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_c"></a>- c -</h3><ul>
|
||||
<li>calculateColorTemperature()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a5d30f9f47efaaa8c5263e33def7f0be2">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_g"></a>- g -</h3><ul>
|
||||
<li>getChannelsRaw()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a4af02f9c732f4d8a385a72ee51f35423">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getCIE()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#adac0d3180839b6262894b7469e0b1646">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getConversionTime()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#adcffc5f1598bbc50cbeb281166f3ca2d">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getFaultCount()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a69bb5bf8c618cb9116e361f2f5b9d5af">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getFlags()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a8362582a2aaac0ebaac8263cfb356b3a">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptConfig()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a31fd1bed4356d6d2fa389dd808b73f6d">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptDirection()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#aa6b9d8a8b9b73643b0c42931184f3a7b">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptLatch()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ae2ec3e102665ebcd34a69e1ab2d33599">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getInterruptPolarity()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a01cb0f0b4166f06c5b6e53cdc34dd194">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getMode()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a0657dbc5d8fd0b678e307e2dfc6632a6">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getQuickWake()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ac942c3c94267b8b1f4e83696e7ae8e3b">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getRange()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#af99ef450b96524fa1654a49fa94b84fd">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getThresholdChannel()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ac0dfa59fc68e4d5b6c6e4380d72050a5">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getThresholdHigh()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a54c16fac8ba0e8b51c2e5b5a3438a0b1">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>getThresholdLow()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a0f09973b92e621a72d8fed96a8ac6a97">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_s"></a>- s -</h3><ul>
|
||||
<li>setConversionTime()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#aaacd0e41c62095b97f65a654bea2ca37">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setFaultCount()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ae0c2eeb7c2aadaec9da0f641edb562a8">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptConfig()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#ab937ea65dd3584036e6773851dcc21c0">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptDirection()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a97048ac8141b035f7deb39687bbf7b71">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptLatch()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#afd6cf304c800da685c07c4b8c7967446">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setInterruptPolarity()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a506f85c0048cdc55545ddbf5dc5ce3b4">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setMode()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a25338fa435c48cfe833ec36f2d803fca">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setQuickWake()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a3c3ab74745cff112d085a650705d38b5">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setRange()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a5b0d1314f7ede263e7e36e4a640d5c08">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setThresholdChannel()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#add62a763e5b252fbd055d6672277a5c3">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setThresholdHigh()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a6e7d630446f71b9f5095f882dbb8338c">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
<li>setThresholdLow()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a06a189eb27c6f024327054a9ba478ee5">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a id="index_0x7e"></a>- ~ -</h3><ul>
|
||||
<li>~Adafruit_OPT4048()
|
||||
: <a class="el" href="class_adafruit___o_p_t4048.html#a306bc65237da5a17fa5219cc2d598bae">Adafruit_OPT4048</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
238
html/globals.html
Normal file
|
|
@ -0,0 +1,238 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: File Members</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="contents">
|
||||
<div class="textblock">Here is a list of all documented file members with links to the documentation:</div>
|
||||
|
||||
<h3><a id="index_o"></a>- o -</h3><ul>
|
||||
<li>OPT4048_CONVERSION_TIME_100MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5aea6b88a4c001b21ddd5b87775afab1f3">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_12_7MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a4136096c4352732fd9d4d015e499b97f">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_1_8MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a83cae9096c18f4bd7026574b01abcaf6">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_1MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a559521fe1598a18c07e54b7de7a58b57">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_200MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a3bd503ea3bb29110d9cc4600b811552b">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_25MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a23b05a3826ce8c78014cf48e160c2a12">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_3_4MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ae1f19403ad03e608e840b5be9ce452c5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_400MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ad9c22be226aa413630f5517e1dcb8656">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_50MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a88045d757f47782ef7f6752ef646e392">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_600US
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a6aef03ff6ed6ec6bc17e1d3bb13c3761">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_6_5MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a0bd0037e6f73eac6ed5672dec1124078">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_800MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ab3a480a56273c1c8a1540818df88de64">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_conversion_time_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_DEFAULT_ADDR
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a24b9df5417d6f7f988029835551053d9">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_1
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a5258243514b4c5c87dc74344cfa831ff">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_2
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7aadf95f15c6587b8074564e956c1de104">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_4
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a252e41d2cde44ae21788725f9f1c3736">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_8
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a00faf5f0f6d0a9408d87c5c26b728524">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_fault_count_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_CONVERSION_READY
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a54493b3cb5890e82e0c52ff90f9148e1">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_H
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a1800bf887505d69aca2ef81fb6b48c72">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_L
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a4d88d887ce9dd763151c462f48e2b85b">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_OVERLOAD
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#affc0fda7ef4d4280a30c4b56e73066da">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_INT_CFG_DATA_READY_ALL
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a5cd9e856c2cd27b4b45a7a4e27bb9422">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_INT_CFG_DATA_READY_NEXT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a6ca5f5870b24caffce3a8e043af7cf71">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_INT_CFG_SMBUS_ALERT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a1cfe4ee2e7435186fd27d643ac76de12">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_int_cfg_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_AUTO_ONESHOT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba747145ee2972d2f80b847653438994cc">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_CONTINUOUS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baf7006d6faf1a291ad6490c8c7db8b923">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_ONESHOT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baa82234530efa71b556e7103911e308e7">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_POWERDOWN
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba6ffc6833673491fe6198f4777ec509c2">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_mode_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523b">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_144K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6af5e061afab5348caa285fbddab8de202">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_18K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a4c27f7cd90c16d2cb1bd44ba30ca8725">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_2K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a2580a4bdacdec6b416b6dcefab49e3ca">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_36K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ab0732fb104a07e32ceeab03e5fcdc025">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_4K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a0d2cb44d9e9ea108b261005a1b427a83">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_72K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a1bbf7d10d2eb4a891bb031e5afc65032">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_9K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a18f08586ade9554767af32c5ac735ce5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_AUTO
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ae6c39df2e61ecf82ca241e30c3cc2b47">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_range_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH0_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a7c59516d5c62692c501c14775cfddfd7">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH0_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0291dda71c43184a5804fd7d1c2e11ea">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH1_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a31b63b1e271b1f80f19cd09e64c82fb5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH1_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a3f4a8dd52267438315c7a653f788ed31">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH2_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#acd34ea5e994cd9b05f7cfdab0f30c453">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH2_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a3b640817091f03124006796bfb204958">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH3_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae2ffd720414d74877d4dc9e773288012">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH3_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ad8a6c51e663e61abdbd722573ff9ba90">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CONFIG
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#af369d8378e6a584b3904b9fe2e20a914">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_DEVICE_ID
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#af24ffb74b5ac58f611ab1eb1d3e566c8">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_STATUS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#aaaaf34616dba5838cc1c2d9e2d14da58">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_THRESHOLD_CFG
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#abe72aace5fc2cc98d1c488c610b81cfc">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_THRESHOLD_HIGH
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0c566680e00551be7822d0aae370e0e5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_THRESHOLD_LOW
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#aaa927e57780f716b06bddd7e63353430">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
128
html/globals_defs.html
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: File Members</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="contents">
|
||||
 <ul>
|
||||
<li>OPT4048_DEFAULT_ADDR
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a24b9df5417d6f7f988029835551053d9">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_CONVERSION_READY
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a54493b3cb5890e82e0c52ff90f9148e1">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_H
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a1800bf887505d69aca2ef81fb6b48c72">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_L
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a4d88d887ce9dd763151c462f48e2b85b">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FLAG_OVERLOAD
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#affc0fda7ef4d4280a30c4b56e73066da">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH0_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a7c59516d5c62692c501c14775cfddfd7">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH0_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0291dda71c43184a5804fd7d1c2e11ea">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH1_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a31b63b1e271b1f80f19cd09e64c82fb5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH1_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a3f4a8dd52267438315c7a653f788ed31">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH2_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#acd34ea5e994cd9b05f7cfdab0f30c453">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH2_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a3b640817091f03124006796bfb204958">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH3_LSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae2ffd720414d74877d4dc9e773288012">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CH3_MSB
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ad8a6c51e663e61abdbd722573ff9ba90">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_CONFIG
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#af369d8378e6a584b3904b9fe2e20a914">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_DEVICE_ID
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#af24ffb74b5ac58f611ab1eb1d3e566c8">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_STATUS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#aaaaf34616dba5838cc1c2d9e2d14da58">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_THRESHOLD_CFG
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#abe72aace5fc2cc98d1c488c610b81cfc">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_THRESHOLD_HIGH
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0c566680e00551be7822d0aae370e0e5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_REG_THRESHOLD_LOW
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#aaa927e57780f716b06bddd7e63353430">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
86
html/globals_enum.html
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: File Members</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="contents">
|
||||
 <ul>
|
||||
<li>opt4048_conversion_time_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_fault_count_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_int_cfg_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_mode_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523b">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>opt4048_range_t
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
166
html/globals_eval.html
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: File Members</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="contents">
|
||||
 
|
||||
|
||||
<h3><a id="index_o"></a>- o -</h3><ul>
|
||||
<li>OPT4048_CONVERSION_TIME_100MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5aea6b88a4c001b21ddd5b87775afab1f3">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_12_7MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a4136096c4352732fd9d4d015e499b97f">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_1_8MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a83cae9096c18f4bd7026574b01abcaf6">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_1MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a559521fe1598a18c07e54b7de7a58b57">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_200MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a3bd503ea3bb29110d9cc4600b811552b">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_25MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a23b05a3826ce8c78014cf48e160c2a12">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_3_4MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ae1f19403ad03e608e840b5be9ce452c5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_400MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ad9c22be226aa413630f5517e1dcb8656">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_50MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a88045d757f47782ef7f6752ef646e392">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_600US
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a6aef03ff6ed6ec6bc17e1d3bb13c3761">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_6_5MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a0bd0037e6f73eac6ed5672dec1124078">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_CONVERSION_TIME_800MS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ab3a480a56273c1c8a1540818df88de64">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_1
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a5258243514b4c5c87dc74344cfa831ff">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_2
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7aadf95f15c6587b8074564e956c1de104">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_4
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a252e41d2cde44ae21788725f9f1c3736">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_FAULT_COUNT_8
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a00faf5f0f6d0a9408d87c5c26b728524">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_INT_CFG_DATA_READY_ALL
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a5cd9e856c2cd27b4b45a7a4e27bb9422">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_INT_CFG_DATA_READY_NEXT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a6ca5f5870b24caffce3a8e043af7cf71">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_INT_CFG_SMBUS_ALERT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a1cfe4ee2e7435186fd27d643ac76de12">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_AUTO_ONESHOT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba747145ee2972d2f80b847653438994cc">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_CONTINUOUS
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baf7006d6faf1a291ad6490c8c7db8b923">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_ONESHOT
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baa82234530efa71b556e7103911e308e7">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_MODE_POWERDOWN
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba6ffc6833673491fe6198f4777ec509c2">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_144K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6af5e061afab5348caa285fbddab8de202">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_18K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a4c27f7cd90c16d2cb1bd44ba30ca8725">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_2K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a2580a4bdacdec6b416b6dcefab49e3ca">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_36K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ab0732fb104a07e32ceeab03e5fcdc025">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_4K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a0d2cb44d9e9ea108b261005a1b427a83">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_72K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a1bbf7d10d2eb4a891bb031e5afc65032">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_9K_LUX
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a18f08586ade9554767af32c5ac735ce5">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
<li>OPT4048_RANGE_AUTO
|
||||
: <a class="el" href="_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ae6c39df2e61ecf82ca241e30c3cc2b47">Adafruit_OPT4048.h</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
84
html/index.html
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Adafruit OPT4048 Arduino Library: Adafruit OPT4048 High Speed High Precision Tristimulus XYZ Color</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Adafruit OPT4048 Arduino Library
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Adafruit OPT4048 High Speed High Precision Tristimulus XYZ Color </div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><p>Sensor</p>
|
||||
<h1><a class="anchor" id="intro_sec"></a>
|
||||
Introduction</h1>
|
||||
<p>This is a library for the Adafruit OPT4048 breakout board -—> <a href="https://www.adafruit.com/products/6334">https://www.adafruit.com/products/6334</a></p>
|
||||
<p>Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!</p>
|
||||
<h1><a class="anchor" id="author"></a>
|
||||
Author</h1>
|
||||
<p>Written by Limor Fried/Ladyada for Adafruit Industries.</p>
|
||||
<h1><a class="anchor" id="license"></a>
|
||||
License</h1>
|
||||
<p>MIT license, all text here must be included in any redistribution </p>
|
||||
</div></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
87
html/jquery.js
vendored
Normal file
26
html/menu.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
function initMenu(relPath,searchEnabled,serverSide,searchPage,search) {
|
||||
function makeTree(data,relPath) {
|
||||
var result='';
|
||||
if ('children' in data) {
|
||||
result+='<ul>';
|
||||
for (var i in data.children) {
|
||||
result+='<li><a href="'+relPath+data.children[i].url+'">'+
|
||||
data.children[i].text+'</a>'+
|
||||
makeTree(data.children[i],relPath)+'</li>';
|
||||
}
|
||||
result+='</ul>';
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
$('#main-nav').append(makeTree(menudata,relPath));
|
||||
$('#main-nav').children(':first').addClass('sm sm-dox').attr('id','main-menu');
|
||||
if (searchEnabled) {
|
||||
if (serverSide) {
|
||||
$('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><div class="left"><form id="FSearchBox" action="'+searchPage+'" method="get"><img id="MSearchSelect" src="'+relPath+'search/mag.png" alt=""/><input type="text" id="MSearchField" name="query" value="'+search+'" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"></form></div><div class="right"></div></div></li>');
|
||||
} else {
|
||||
$('#main-menu').append('<li style="float:right"><div id="MSearchBox" class="MSearchBoxInactive"><span class="left"><img id="MSearchSelect" src="'+relPath+'search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/><input type="text" id="MSearchField" value="'+search+'" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/></span><span class="right"><a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="'+relPath+'search/close.png" alt=""/></a></span></div></li>');
|
||||
}
|
||||
}
|
||||
$('#main-menu').smartmenus();
|
||||
}
|
||||
29
html/menudata.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
var menudata={children:[
|
||||
{text:"Main Page",url:"index.html"},
|
||||
{text:"Classes",url:"annotated.html",children:[
|
||||
{text:"Class List",url:"annotated.html"},
|
||||
{text:"Class Index",url:"classes.html"},
|
||||
{text:"Class Members",url:"functions.html",children:[
|
||||
{text:"All",url:"functions.html",children:[
|
||||
{text:"a",url:"functions.html#index_a"},
|
||||
{text:"b",url:"functions.html#index_b"},
|
||||
{text:"c",url:"functions.html#index_c"},
|
||||
{text:"g",url:"functions.html#index_g"},
|
||||
{text:"s",url:"functions.html#index_s"},
|
||||
{text:"~",url:"functions.html#index_0x7e"}]},
|
||||
{text:"Functions",url:"functions_func.html",children:[
|
||||
{text:"a",url:"functions_func.html#index_a"},
|
||||
{text:"b",url:"functions_func.html#index_b"},
|
||||
{text:"c",url:"functions_func.html#index_c"},
|
||||
{text:"g",url:"functions_func.html#index_g"},
|
||||
{text:"s",url:"functions_func.html#index_s"},
|
||||
{text:"~",url:"functions_func.html#index_0x7e"}]}]}]},
|
||||
{text:"Files",url:"files.html",children:[
|
||||
{text:"File List",url:"files.html"},
|
||||
{text:"File Members",url:"globals.html",children:[
|
||||
{text:"All",url:"globals.html",children:[
|
||||
{text:"o",url:"globals.html#index_o"}]},
|
||||
{text:"Enumerations",url:"globals_enum.html"},
|
||||
{text:"Enumerator",url:"globals_eval.html",children:[
|
||||
{text:"o",url:"globals_eval.html#index_o"}]},
|
||||
{text:"Macros",url:"globals_defs.html"}]}]}]}
|
||||
BIN
html/nav_f.png
Normal file
|
After Width: | Height: | Size: 153 B |
BIN
html/nav_g.png
Normal file
|
After Width: | Height: | Size: 95 B |
BIN
html/nav_h.png
Normal file
|
After Width: | Height: | Size: 98 B |
BIN
html/open.png
Normal file
|
After Width: | Height: | Size: 123 B |
26
html/search/all_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="all_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
7
html/search/all_0.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
var searchData=
|
||||
[
|
||||
['adafruit_5fopt4048',['Adafruit_OPT4048',['../class_adafruit___o_p_t4048.html',1,'Adafruit_OPT4048'],['../class_adafruit___o_p_t4048.html#a79c9ee7616031e820a166c574e356ede',1,'Adafruit_OPT4048::Adafruit_OPT4048()']]],
|
||||
['adafruit_5fopt4048_2ecpp',['Adafruit_OPT4048.cpp',['../_adafruit___o_p_t4048_8cpp.html',1,'']]],
|
||||
['adafruit_5fopt4048_2eh',['Adafruit_OPT4048.h',['../_adafruit___o_p_t4048_8h.html',1,'']]],
|
||||
['adafruit_20opt4048_20high_20speed_20high_20precision_20tristimulus_20xyz_20color',['Adafruit OPT4048 High Speed High Precision Tristimulus XYZ Color',['../index.html',1,'']]]
|
||||
];
|
||||
26
html/search/all_1.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="all_1.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/all_1.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['begin',['begin',['../class_adafruit___o_p_t4048.html#abf15f48ecf56df10c35e6c9cabb7f6bd',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/all_2.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="all_2.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/all_2.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['calculatecolortemperature',['calculateColorTemperature',['../class_adafruit___o_p_t4048.html#a5d30f9f47efaaa8c5263e33def7f0be2',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/all_3.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="all_3.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
18
html/search/all_3.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
var searchData=
|
||||
[
|
||||
['getchannelsraw',['getChannelsRaw',['../class_adafruit___o_p_t4048.html#a4af02f9c732f4d8a385a72ee51f35423',1,'Adafruit_OPT4048']]],
|
||||
['getcie',['getCIE',['../class_adafruit___o_p_t4048.html#adac0d3180839b6262894b7469e0b1646',1,'Adafruit_OPT4048']]],
|
||||
['getconversiontime',['getConversionTime',['../class_adafruit___o_p_t4048.html#adcffc5f1598bbc50cbeb281166f3ca2d',1,'Adafruit_OPT4048']]],
|
||||
['getfaultcount',['getFaultCount',['../class_adafruit___o_p_t4048.html#a69bb5bf8c618cb9116e361f2f5b9d5af',1,'Adafruit_OPT4048']]],
|
||||
['getflags',['getFlags',['../class_adafruit___o_p_t4048.html#a8362582a2aaac0ebaac8263cfb356b3a',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptconfig',['getInterruptConfig',['../class_adafruit___o_p_t4048.html#a31fd1bed4356d6d2fa389dd808b73f6d',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptdirection',['getInterruptDirection',['../class_adafruit___o_p_t4048.html#aa6b9d8a8b9b73643b0c42931184f3a7b',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptlatch',['getInterruptLatch',['../class_adafruit___o_p_t4048.html#ae2ec3e102665ebcd34a69e1ab2d33599',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptpolarity',['getInterruptPolarity',['../class_adafruit___o_p_t4048.html#a01cb0f0b4166f06c5b6e53cdc34dd194',1,'Adafruit_OPT4048']]],
|
||||
['getmode',['getMode',['../class_adafruit___o_p_t4048.html#a0657dbc5d8fd0b678e307e2dfc6632a6',1,'Adafruit_OPT4048']]],
|
||||
['getquickwake',['getQuickWake',['../class_adafruit___o_p_t4048.html#ac942c3c94267b8b1f4e83696e7ae8e3b',1,'Adafruit_OPT4048']]],
|
||||
['getrange',['getRange',['../class_adafruit___o_p_t4048.html#af99ef450b96524fa1654a49fa94b84fd',1,'Adafruit_OPT4048']]],
|
||||
['getthresholdchannel',['getThresholdChannel',['../class_adafruit___o_p_t4048.html#ac0dfa59fc68e4d5b6c6e4380d72050a5',1,'Adafruit_OPT4048']]],
|
||||
['getthresholdhigh',['getThresholdHigh',['../class_adafruit___o_p_t4048.html#a54c16fac8ba0e8b51c2e5b5a3438a0b1',1,'Adafruit_OPT4048']]],
|
||||
['getthresholdlow',['getThresholdLow',['../class_adafruit___o_p_t4048.html#a0f09973b92e621a72d8fed96a8ac6a97',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/all_4.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="all_4.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
58
html/search/all_4.js
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
var searchData=
|
||||
[
|
||||
['opt4048_5fconversion_5ftime_5f100ms',['OPT4048_CONVERSION_TIME_100MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5aea6b88a4c001b21ddd5b87775afab1f3',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f12_5f7ms',['OPT4048_CONVERSION_TIME_12_7MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a4136096c4352732fd9d4d015e499b97f',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f1_5f8ms',['OPT4048_CONVERSION_TIME_1_8MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a83cae9096c18f4bd7026574b01abcaf6',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f1ms',['OPT4048_CONVERSION_TIME_1MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a559521fe1598a18c07e54b7de7a58b57',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f200ms',['OPT4048_CONVERSION_TIME_200MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a3bd503ea3bb29110d9cc4600b811552b',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f25ms',['OPT4048_CONVERSION_TIME_25MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a23b05a3826ce8c78014cf48e160c2a12',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f3_5f4ms',['OPT4048_CONVERSION_TIME_3_4MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ae1f19403ad03e608e840b5be9ce452c5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f400ms',['OPT4048_CONVERSION_TIME_400MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ad9c22be226aa413630f5517e1dcb8656',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f50ms',['OPT4048_CONVERSION_TIME_50MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a88045d757f47782ef7f6752ef646e392',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f600us',['OPT4048_CONVERSION_TIME_600US',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a6aef03ff6ed6ec6bc17e1d3bb13c3761',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f6_5f5ms',['OPT4048_CONVERSION_TIME_6_5MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a0bd0037e6f73eac6ed5672dec1124078',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f800ms',['OPT4048_CONVERSION_TIME_800MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ab3a480a56273c1c8a1540818df88de64',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5ft',['opt4048_conversion_time_t',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fdefault_5faddr',['OPT4048_DEFAULT_ADDR',['../_adafruit___o_p_t4048_8h.html#a24b9df5417d6f7f988029835551053d9',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f1',['OPT4048_FAULT_COUNT_1',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a5258243514b4c5c87dc74344cfa831ff',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f2',['OPT4048_FAULT_COUNT_2',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7aadf95f15c6587b8074564e956c1de104',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f4',['OPT4048_FAULT_COUNT_4',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a252e41d2cde44ae21788725f9f1c3736',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f8',['OPT4048_FAULT_COUNT_8',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a00faf5f0f6d0a9408d87c5c26b728524',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5ft',['opt4048_fault_count_t',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5fconversion_5fready',['OPT4048_FLAG_CONVERSION_READY',['../_adafruit___o_p_t4048_8h.html#a54493b3cb5890e82e0c52ff90f9148e1',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5fh',['OPT4048_FLAG_H',['../_adafruit___o_p_t4048_8h.html#a1800bf887505d69aca2ef81fb6b48c72',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5fl',['OPT4048_FLAG_L',['../_adafruit___o_p_t4048_8h.html#a4d88d887ce9dd763151c462f48e2b85b',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5foverload',['OPT4048_FLAG_OVERLOAD',['../_adafruit___o_p_t4048_8h.html#affc0fda7ef4d4280a30c4b56e73066da',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5fdata_5fready_5fall',['OPT4048_INT_CFG_DATA_READY_ALL',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a5cd9e856c2cd27b4b45a7a4e27bb9422',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5fdata_5fready_5fnext',['OPT4048_INT_CFG_DATA_READY_NEXT',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a6ca5f5870b24caffce3a8e043af7cf71',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5fsmbus_5falert',['OPT4048_INT_CFG_SMBUS_ALERT',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a1cfe4ee2e7435186fd27d643ac76de12',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5ft',['opt4048_int_cfg_t',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5fauto_5foneshot',['OPT4048_MODE_AUTO_ONESHOT',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba747145ee2972d2f80b847653438994cc',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5fcontinuous',['OPT4048_MODE_CONTINUOUS',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baf7006d6faf1a291ad6490c8c7db8b923',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5foneshot',['OPT4048_MODE_ONESHOT',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baa82234530efa71b556e7103911e308e7',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5fpowerdown',['OPT4048_MODE_POWERDOWN',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba6ffc6833673491fe6198f4777ec509c2',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5ft',['opt4048_mode_t',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523b',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f144k_5flux',['OPT4048_RANGE_144K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6af5e061afab5348caa285fbddab8de202',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f18k_5flux',['OPT4048_RANGE_18K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a4c27f7cd90c16d2cb1bd44ba30ca8725',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f2k_5flux',['OPT4048_RANGE_2K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a2580a4bdacdec6b416b6dcefab49e3ca',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f36k_5flux',['OPT4048_RANGE_36K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ab0732fb104a07e32ceeab03e5fcdc025',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f4k_5flux',['OPT4048_RANGE_4K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a0d2cb44d9e9ea108b261005a1b427a83',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f72k_5flux',['OPT4048_RANGE_72K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a1bbf7d10d2eb4a891bb031e5afc65032',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f9k_5flux',['OPT4048_RANGE_9K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a18f08586ade9554767af32c5ac735ce5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5fauto',['OPT4048_RANGE_AUTO',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ae6c39df2e61ecf82ca241e30c3cc2b47',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5ft',['opt4048_range_t',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch0_5flsb',['OPT4048_REG_CH0_LSB',['../_adafruit___o_p_t4048_8h.html#a7c59516d5c62692c501c14775cfddfd7',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch0_5fmsb',['OPT4048_REG_CH0_MSB',['../_adafruit___o_p_t4048_8h.html#a0291dda71c43184a5804fd7d1c2e11ea',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch1_5flsb',['OPT4048_REG_CH1_LSB',['../_adafruit___o_p_t4048_8h.html#a31b63b1e271b1f80f19cd09e64c82fb5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch1_5fmsb',['OPT4048_REG_CH1_MSB',['../_adafruit___o_p_t4048_8h.html#a3f4a8dd52267438315c7a653f788ed31',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch2_5flsb',['OPT4048_REG_CH2_LSB',['../_adafruit___o_p_t4048_8h.html#acd34ea5e994cd9b05f7cfdab0f30c453',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch2_5fmsb',['OPT4048_REG_CH2_MSB',['../_adafruit___o_p_t4048_8h.html#a3b640817091f03124006796bfb204958',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch3_5flsb',['OPT4048_REG_CH3_LSB',['../_adafruit___o_p_t4048_8h.html#ae2ffd720414d74877d4dc9e773288012',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch3_5fmsb',['OPT4048_REG_CH3_MSB',['../_adafruit___o_p_t4048_8h.html#ad8a6c51e663e61abdbd722573ff9ba90',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fconfig',['OPT4048_REG_CONFIG',['../_adafruit___o_p_t4048_8h.html#af369d8378e6a584b3904b9fe2e20a914',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fdevice_5fid',['OPT4048_REG_DEVICE_ID',['../_adafruit___o_p_t4048_8h.html#af24ffb74b5ac58f611ab1eb1d3e566c8',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fstatus',['OPT4048_REG_STATUS',['../_adafruit___o_p_t4048_8h.html#aaaaf34616dba5838cc1c2d9e2d14da58',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fthreshold_5fcfg',['OPT4048_REG_THRESHOLD_CFG',['../_adafruit___o_p_t4048_8h.html#abe72aace5fc2cc98d1c488c610b81cfc',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fthreshold_5fhigh',['OPT4048_REG_THRESHOLD_HIGH',['../_adafruit___o_p_t4048_8h.html#a0c566680e00551be7822d0aae370e0e5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fthreshold_5flow',['OPT4048_REG_THRESHOLD_LOW',['../_adafruit___o_p_t4048_8h.html#aaa927e57780f716b06bddd7e63353430',1,'Adafruit_OPT4048.h']]]
|
||||
];
|
||||
26
html/search/all_5.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="all_5.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
15
html/search/all_5.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
var searchData=
|
||||
[
|
||||
['setconversiontime',['setConversionTime',['../class_adafruit___o_p_t4048.html#aaacd0e41c62095b97f65a654bea2ca37',1,'Adafruit_OPT4048']]],
|
||||
['setfaultcount',['setFaultCount',['../class_adafruit___o_p_t4048.html#ae0c2eeb7c2aadaec9da0f641edb562a8',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptconfig',['setInterruptConfig',['../class_adafruit___o_p_t4048.html#ab937ea65dd3584036e6773851dcc21c0',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptdirection',['setInterruptDirection',['../class_adafruit___o_p_t4048.html#a97048ac8141b035f7deb39687bbf7b71',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptlatch',['setInterruptLatch',['../class_adafruit___o_p_t4048.html#afd6cf304c800da685c07c4b8c7967446',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptpolarity',['setInterruptPolarity',['../class_adafruit___o_p_t4048.html#a506f85c0048cdc55545ddbf5dc5ce3b4',1,'Adafruit_OPT4048']]],
|
||||
['setmode',['setMode',['../class_adafruit___o_p_t4048.html#a25338fa435c48cfe833ec36f2d803fca',1,'Adafruit_OPT4048']]],
|
||||
['setquickwake',['setQuickWake',['../class_adafruit___o_p_t4048.html#a3c3ab74745cff112d085a650705d38b5',1,'Adafruit_OPT4048']]],
|
||||
['setrange',['setRange',['../class_adafruit___o_p_t4048.html#a5b0d1314f7ede263e7e36e4a640d5c08',1,'Adafruit_OPT4048']]],
|
||||
['setthresholdchannel',['setThresholdChannel',['../class_adafruit___o_p_t4048.html#add62a763e5b252fbd055d6672277a5c3',1,'Adafruit_OPT4048']]],
|
||||
['setthresholdhigh',['setThresholdHigh',['../class_adafruit___o_p_t4048.html#a6e7d630446f71b9f5095f882dbb8338c',1,'Adafruit_OPT4048']]],
|
||||
['setthresholdlow',['setThresholdLow',['../class_adafruit___o_p_t4048.html#a06a189eb27c6f024327054a9ba478ee5',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/all_6.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="all_6.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/all_6.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['_7eadafruit_5fopt4048',['~Adafruit_OPT4048',['../class_adafruit___o_p_t4048.html#a306bc65237da5a17fa5219cc2d598bae',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/classes_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="classes_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/classes_0.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['adafruit_5fopt4048',['Adafruit_OPT4048',['../class_adafruit___o_p_t4048.html',1,'']]]
|
||||
];
|
||||
BIN
html/search/close.png
Normal file
|
After Width: | Height: | Size: 273 B |
26
html/search/defines_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="defines_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
22
html/search/defines_0.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
var searchData=
|
||||
[
|
||||
['opt4048_5fdefault_5faddr',['OPT4048_DEFAULT_ADDR',['../_adafruit___o_p_t4048_8h.html#a24b9df5417d6f7f988029835551053d9',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5fconversion_5fready',['OPT4048_FLAG_CONVERSION_READY',['../_adafruit___o_p_t4048_8h.html#a54493b3cb5890e82e0c52ff90f9148e1',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5fh',['OPT4048_FLAG_H',['../_adafruit___o_p_t4048_8h.html#a1800bf887505d69aca2ef81fb6b48c72',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5fl',['OPT4048_FLAG_L',['../_adafruit___o_p_t4048_8h.html#a4d88d887ce9dd763151c462f48e2b85b',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fflag_5foverload',['OPT4048_FLAG_OVERLOAD',['../_adafruit___o_p_t4048_8h.html#affc0fda7ef4d4280a30c4b56e73066da',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch0_5flsb',['OPT4048_REG_CH0_LSB',['../_adafruit___o_p_t4048_8h.html#a7c59516d5c62692c501c14775cfddfd7',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch0_5fmsb',['OPT4048_REG_CH0_MSB',['../_adafruit___o_p_t4048_8h.html#a0291dda71c43184a5804fd7d1c2e11ea',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch1_5flsb',['OPT4048_REG_CH1_LSB',['../_adafruit___o_p_t4048_8h.html#a31b63b1e271b1f80f19cd09e64c82fb5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch1_5fmsb',['OPT4048_REG_CH1_MSB',['../_adafruit___o_p_t4048_8h.html#a3f4a8dd52267438315c7a653f788ed31',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch2_5flsb',['OPT4048_REG_CH2_LSB',['../_adafruit___o_p_t4048_8h.html#acd34ea5e994cd9b05f7cfdab0f30c453',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch2_5fmsb',['OPT4048_REG_CH2_MSB',['../_adafruit___o_p_t4048_8h.html#a3b640817091f03124006796bfb204958',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch3_5flsb',['OPT4048_REG_CH3_LSB',['../_adafruit___o_p_t4048_8h.html#ae2ffd720414d74877d4dc9e773288012',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fch3_5fmsb',['OPT4048_REG_CH3_MSB',['../_adafruit___o_p_t4048_8h.html#ad8a6c51e663e61abdbd722573ff9ba90',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fconfig',['OPT4048_REG_CONFIG',['../_adafruit___o_p_t4048_8h.html#af369d8378e6a584b3904b9fe2e20a914',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fdevice_5fid',['OPT4048_REG_DEVICE_ID',['../_adafruit___o_p_t4048_8h.html#af24ffb74b5ac58f611ab1eb1d3e566c8',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fstatus',['OPT4048_REG_STATUS',['../_adafruit___o_p_t4048_8h.html#aaaaf34616dba5838cc1c2d9e2d14da58',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fthreshold_5fcfg',['OPT4048_REG_THRESHOLD_CFG',['../_adafruit___o_p_t4048_8h.html#abe72aace5fc2cc98d1c488c610b81cfc',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fthreshold_5fhigh',['OPT4048_REG_THRESHOLD_HIGH',['../_adafruit___o_p_t4048_8h.html#a0c566680e00551be7822d0aae370e0e5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5freg_5fthreshold_5flow',['OPT4048_REG_THRESHOLD_LOW',['../_adafruit___o_p_t4048_8h.html#aaa927e57780f716b06bddd7e63353430',1,'Adafruit_OPT4048.h']]]
|
||||
];
|
||||
26
html/search/enums_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="enums_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
8
html/search/enums_0.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
var searchData=
|
||||
[
|
||||
['opt4048_5fconversion_5ftime_5ft',['opt4048_conversion_time_t',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5ft',['opt4048_fault_count_t',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5ft',['opt4048_int_cfg_t',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5ft',['opt4048_mode_t',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523b',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5ft',['opt4048_range_t',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6',1,'Adafruit_OPT4048.h']]]
|
||||
];
|
||||
26
html/search/enumvalues_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="enumvalues_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
34
html/search/enumvalues_0.js
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
var searchData=
|
||||
[
|
||||
['opt4048_5fconversion_5ftime_5f100ms',['OPT4048_CONVERSION_TIME_100MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5aea6b88a4c001b21ddd5b87775afab1f3',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f12_5f7ms',['OPT4048_CONVERSION_TIME_12_7MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a4136096c4352732fd9d4d015e499b97f',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f1_5f8ms',['OPT4048_CONVERSION_TIME_1_8MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a83cae9096c18f4bd7026574b01abcaf6',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f1ms',['OPT4048_CONVERSION_TIME_1MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a559521fe1598a18c07e54b7de7a58b57',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f200ms',['OPT4048_CONVERSION_TIME_200MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a3bd503ea3bb29110d9cc4600b811552b',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f25ms',['OPT4048_CONVERSION_TIME_25MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a23b05a3826ce8c78014cf48e160c2a12',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f3_5f4ms',['OPT4048_CONVERSION_TIME_3_4MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ae1f19403ad03e608e840b5be9ce452c5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f400ms',['OPT4048_CONVERSION_TIME_400MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ad9c22be226aa413630f5517e1dcb8656',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f50ms',['OPT4048_CONVERSION_TIME_50MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a88045d757f47782ef7f6752ef646e392',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f600us',['OPT4048_CONVERSION_TIME_600US',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a6aef03ff6ed6ec6bc17e1d3bb13c3761',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f6_5f5ms',['OPT4048_CONVERSION_TIME_6_5MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5a0bd0037e6f73eac6ed5672dec1124078',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fconversion_5ftime_5f800ms',['OPT4048_CONVERSION_TIME_800MS',['../_adafruit___o_p_t4048_8h.html#a0e85862310e6809dc650cf199d9842b5ab3a480a56273c1c8a1540818df88de64',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f1',['OPT4048_FAULT_COUNT_1',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a5258243514b4c5c87dc74344cfa831ff',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f2',['OPT4048_FAULT_COUNT_2',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7aadf95f15c6587b8074564e956c1de104',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f4',['OPT4048_FAULT_COUNT_4',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a252e41d2cde44ae21788725f9f1c3736',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5ffault_5fcount_5f8',['OPT4048_FAULT_COUNT_8',['../_adafruit___o_p_t4048_8h.html#a2f948c8470a382a144be25f14dbd64e7a00faf5f0f6d0a9408d87c5c26b728524',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5fdata_5fready_5fall',['OPT4048_INT_CFG_DATA_READY_ALL',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a5cd9e856c2cd27b4b45a7a4e27bb9422',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5fdata_5fready_5fnext',['OPT4048_INT_CFG_DATA_READY_NEXT',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a6ca5f5870b24caffce3a8e043af7cf71',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fint_5fcfg_5fsmbus_5falert',['OPT4048_INT_CFG_SMBUS_ALERT',['../_adafruit___o_p_t4048_8h.html#ae5807cd78d1f3ea41e13f880230f9c24a1cfe4ee2e7435186fd27d643ac76de12',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5fauto_5foneshot',['OPT4048_MODE_AUTO_ONESHOT',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba747145ee2972d2f80b847653438994cc',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5fcontinuous',['OPT4048_MODE_CONTINUOUS',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baf7006d6faf1a291ad6490c8c7db8b923',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5foneshot',['OPT4048_MODE_ONESHOT',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523baa82234530efa71b556e7103911e308e7',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5fmode_5fpowerdown',['OPT4048_MODE_POWERDOWN',['../_adafruit___o_p_t4048_8h.html#a50ce1c4574b5ef231912f02ac0ae523ba6ffc6833673491fe6198f4777ec509c2',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f144k_5flux',['OPT4048_RANGE_144K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6af5e061afab5348caa285fbddab8de202',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f18k_5flux',['OPT4048_RANGE_18K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a4c27f7cd90c16d2cb1bd44ba30ca8725',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f2k_5flux',['OPT4048_RANGE_2K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a2580a4bdacdec6b416b6dcefab49e3ca',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f36k_5flux',['OPT4048_RANGE_36K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ab0732fb104a07e32ceeab03e5fcdc025',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f4k_5flux',['OPT4048_RANGE_4K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a0d2cb44d9e9ea108b261005a1b427a83',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f72k_5flux',['OPT4048_RANGE_72K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a1bbf7d10d2eb4a891bb031e5afc65032',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5f9k_5flux',['OPT4048_RANGE_9K_LUX',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6a18f08586ade9554767af32c5ac735ce5',1,'Adafruit_OPT4048.h']]],
|
||||
['opt4048_5frange_5fauto',['OPT4048_RANGE_AUTO',['../_adafruit___o_p_t4048_8h.html#a63c71421f2ca143d500cd4ceb6e159a6ae6c39df2e61ecf82ca241e30c3cc2b47',1,'Adafruit_OPT4048.h']]]
|
||||
];
|
||||
26
html/search/files_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="files_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
5
html/search/files_0.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var searchData=
|
||||
[
|
||||
['adafruit_5fopt4048_2ecpp',['Adafruit_OPT4048.cpp',['../_adafruit___o_p_t4048_8cpp.html',1,'']]],
|
||||
['adafruit_5fopt4048_2eh',['Adafruit_OPT4048.h',['../_adafruit___o_p_t4048_8h.html',1,'']]]
|
||||
];
|
||||
26
html/search/functions_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="functions_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/functions_0.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['adafruit_5fopt4048',['Adafruit_OPT4048',['../class_adafruit___o_p_t4048.html#a79c9ee7616031e820a166c574e356ede',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/functions_1.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="functions_1.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/functions_1.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['begin',['begin',['../class_adafruit___o_p_t4048.html#abf15f48ecf56df10c35e6c9cabb7f6bd',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/functions_2.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="functions_2.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/functions_2.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['calculatecolortemperature',['calculateColorTemperature',['../class_adafruit___o_p_t4048.html#a5d30f9f47efaaa8c5263e33def7f0be2',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/functions_3.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="functions_3.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
18
html/search/functions_3.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
var searchData=
|
||||
[
|
||||
['getchannelsraw',['getChannelsRaw',['../class_adafruit___o_p_t4048.html#a4af02f9c732f4d8a385a72ee51f35423',1,'Adafruit_OPT4048']]],
|
||||
['getcie',['getCIE',['../class_adafruit___o_p_t4048.html#adac0d3180839b6262894b7469e0b1646',1,'Adafruit_OPT4048']]],
|
||||
['getconversiontime',['getConversionTime',['../class_adafruit___o_p_t4048.html#adcffc5f1598bbc50cbeb281166f3ca2d',1,'Adafruit_OPT4048']]],
|
||||
['getfaultcount',['getFaultCount',['../class_adafruit___o_p_t4048.html#a69bb5bf8c618cb9116e361f2f5b9d5af',1,'Adafruit_OPT4048']]],
|
||||
['getflags',['getFlags',['../class_adafruit___o_p_t4048.html#a8362582a2aaac0ebaac8263cfb356b3a',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptconfig',['getInterruptConfig',['../class_adafruit___o_p_t4048.html#a31fd1bed4356d6d2fa389dd808b73f6d',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptdirection',['getInterruptDirection',['../class_adafruit___o_p_t4048.html#aa6b9d8a8b9b73643b0c42931184f3a7b',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptlatch',['getInterruptLatch',['../class_adafruit___o_p_t4048.html#ae2ec3e102665ebcd34a69e1ab2d33599',1,'Adafruit_OPT4048']]],
|
||||
['getinterruptpolarity',['getInterruptPolarity',['../class_adafruit___o_p_t4048.html#a01cb0f0b4166f06c5b6e53cdc34dd194',1,'Adafruit_OPT4048']]],
|
||||
['getmode',['getMode',['../class_adafruit___o_p_t4048.html#a0657dbc5d8fd0b678e307e2dfc6632a6',1,'Adafruit_OPT4048']]],
|
||||
['getquickwake',['getQuickWake',['../class_adafruit___o_p_t4048.html#ac942c3c94267b8b1f4e83696e7ae8e3b',1,'Adafruit_OPT4048']]],
|
||||
['getrange',['getRange',['../class_adafruit___o_p_t4048.html#af99ef450b96524fa1654a49fa94b84fd',1,'Adafruit_OPT4048']]],
|
||||
['getthresholdchannel',['getThresholdChannel',['../class_adafruit___o_p_t4048.html#ac0dfa59fc68e4d5b6c6e4380d72050a5',1,'Adafruit_OPT4048']]],
|
||||
['getthresholdhigh',['getThresholdHigh',['../class_adafruit___o_p_t4048.html#a54c16fac8ba0e8b51c2e5b5a3438a0b1',1,'Adafruit_OPT4048']]],
|
||||
['getthresholdlow',['getThresholdLow',['../class_adafruit___o_p_t4048.html#a0f09973b92e621a72d8fed96a8ac6a97',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/functions_4.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="functions_4.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
15
html/search/functions_4.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
var searchData=
|
||||
[
|
||||
['setconversiontime',['setConversionTime',['../class_adafruit___o_p_t4048.html#aaacd0e41c62095b97f65a654bea2ca37',1,'Adafruit_OPT4048']]],
|
||||
['setfaultcount',['setFaultCount',['../class_adafruit___o_p_t4048.html#ae0c2eeb7c2aadaec9da0f641edb562a8',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptconfig',['setInterruptConfig',['../class_adafruit___o_p_t4048.html#ab937ea65dd3584036e6773851dcc21c0',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptdirection',['setInterruptDirection',['../class_adafruit___o_p_t4048.html#a97048ac8141b035f7deb39687bbf7b71',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptlatch',['setInterruptLatch',['../class_adafruit___o_p_t4048.html#afd6cf304c800da685c07c4b8c7967446',1,'Adafruit_OPT4048']]],
|
||||
['setinterruptpolarity',['setInterruptPolarity',['../class_adafruit___o_p_t4048.html#a506f85c0048cdc55545ddbf5dc5ce3b4',1,'Adafruit_OPT4048']]],
|
||||
['setmode',['setMode',['../class_adafruit___o_p_t4048.html#a25338fa435c48cfe833ec36f2d803fca',1,'Adafruit_OPT4048']]],
|
||||
['setquickwake',['setQuickWake',['../class_adafruit___o_p_t4048.html#a3c3ab74745cff112d085a650705d38b5',1,'Adafruit_OPT4048']]],
|
||||
['setrange',['setRange',['../class_adafruit___o_p_t4048.html#a5b0d1314f7ede263e7e36e4a640d5c08',1,'Adafruit_OPT4048']]],
|
||||
['setthresholdchannel',['setThresholdChannel',['../class_adafruit___o_p_t4048.html#add62a763e5b252fbd055d6672277a5c3',1,'Adafruit_OPT4048']]],
|
||||
['setthresholdhigh',['setThresholdHigh',['../class_adafruit___o_p_t4048.html#a6e7d630446f71b9f5095f882dbb8338c',1,'Adafruit_OPT4048']]],
|
||||
['setthresholdlow',['setThresholdLow',['../class_adafruit___o_p_t4048.html#a06a189eb27c6f024327054a9ba478ee5',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
26
html/search/functions_5.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="functions_5.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/functions_5.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['_7eadafruit_5fopt4048',['~Adafruit_OPT4048',['../class_adafruit___o_p_t4048.html#a306bc65237da5a17fa5219cc2d598bae',1,'Adafruit_OPT4048']]]
|
||||
];
|
||||
BIN
html/search/mag_sel.png
Normal file
|
After Width: | Height: | Size: 563 B |
12
html/search/nomatches.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
26
html/search/pages_0.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html><head><title></title>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<link rel="stylesheet" type="text/css" href="search.css"/>
|
||||
<script type="text/javascript" src="pages_0.js"></script>
|
||||
<script type="text/javascript" src="search.js"></script>
|
||||
</head>
|
||||
<body class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div id="SRResults"></div>
|
||||
<script type="text/javascript"><!--
|
||||
createResults();
|
||||
--></script>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
<script type="text/javascript"><!--
|
||||
document.getElementById("Loading").style.display="none";
|
||||
document.getElementById("NoMatches").style.display="none";
|
||||
var searchResults = new SearchResults("searchResults");
|
||||
searchResults.Search();
|
||||
--></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
4
html/search/pages_0.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var searchData=
|
||||
[
|
||||
['adafruit_20opt4048_20high_20speed_20high_20precision_20tristimulus_20xyz_20color',['Adafruit OPT4048 High Speed High Precision Tristimulus XYZ Color',['../index.html',1,'']]]
|
||||
];
|
||||
271
html/search/search.css
Normal file
|
|
@ -0,0 +1,271 @@
|
|||
/*---------------- Search Box */
|
||||
|
||||
#FSearchBox {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#MSearchBox {
|
||||
white-space : nowrap;
|
||||
float: none;
|
||||
margin-top: 8px;
|
||||
right: 0px;
|
||||
width: 170px;
|
||||
height: 24px;
|
||||
z-index: 102;
|
||||
}
|
||||
|
||||
#MSearchBox .left
|
||||
{
|
||||
display:block;
|
||||
position:absolute;
|
||||
left:10px;
|
||||
width:20px;
|
||||
height:19px;
|
||||
background:url('search_l.png') no-repeat;
|
||||
background-position:right;
|
||||
}
|
||||
|
||||
#MSearchSelect {
|
||||
display:block;
|
||||
position:absolute;
|
||||
width:20px;
|
||||
height:19px;
|
||||
}
|
||||
|
||||
.left #MSearchSelect {
|
||||
left:4px;
|
||||
}
|
||||
|
||||
.right #MSearchSelect {
|
||||
right:5px;
|
||||
}
|
||||
|
||||
#MSearchField {
|
||||
display:block;
|
||||
position:absolute;
|
||||
height:19px;
|
||||
background:url('search_m.png') repeat-x;
|
||||
border:none;
|
||||
width:115px;
|
||||
margin-left:20px;
|
||||
padding-left:4px;
|
||||
color: #909090;
|
||||
outline: none;
|
||||
font: 9pt Arial, Verdana, sans-serif;
|
||||
-webkit-border-radius: 0px;
|
||||
}
|
||||
|
||||
#FSearchBox #MSearchField {
|
||||
margin-left:15px;
|
||||
}
|
||||
|
||||
#MSearchBox .right {
|
||||
display:block;
|
||||
position:absolute;
|
||||
right:10px;
|
||||
top:8px;
|
||||
width:20px;
|
||||
height:19px;
|
||||
background:url('search_r.png') no-repeat;
|
||||
background-position:left;
|
||||
}
|
||||
|
||||
#MSearchClose {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
background : none;
|
||||
border: none;
|
||||
margin: 0px 4px 0px 0px;
|
||||
padding: 0px 0px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.left #MSearchClose {
|
||||
left: 6px;
|
||||
}
|
||||
|
||||
.right #MSearchClose {
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
.MSearchBoxActive #MSearchField {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/*---------------- Search filter selection */
|
||||
|
||||
#MSearchSelectWindow {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 0; top: 0;
|
||||
border: 1px solid #90A5CE;
|
||||
background-color: #F9FAFC;
|
||||
z-index: 10001;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-top-left-radius: 4px;
|
||||
-webkit-border-top-right-radius: 4px;
|
||||
-webkit-border-bottom-left-radius: 4px;
|
||||
-webkit-border-bottom-right-radius: 4px;
|
||||
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.SelectItem {
|
||||
font: 8pt Arial, Verdana, sans-serif;
|
||||
padding-left: 2px;
|
||||
padding-right: 12px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
span.SelectionMark {
|
||||
margin-right: 4px;
|
||||
font-family: monospace;
|
||||
outline-style: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.SelectItem {
|
||||
display: block;
|
||||
outline-style: none;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
padding-left: 6px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
a.SelectItem:focus,
|
||||
a.SelectItem:active {
|
||||
color: #000000;
|
||||
outline-style: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.SelectItem:hover {
|
||||
color: #FFFFFF;
|
||||
background-color: #3D578C;
|
||||
outline-style: none;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*---------------- Search results window */
|
||||
|
||||
iframe#MSearchResults {
|
||||
width: 60ex;
|
||||
height: 15em;
|
||||
}
|
||||
|
||||
#MSearchResultsWindow {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 0; top: 0;
|
||||
border: 1px solid #000;
|
||||
background-color: #EEF1F7;
|
||||
z-index:10000;
|
||||
}
|
||||
|
||||
/* ----------------------------------- */
|
||||
|
||||
|
||||
#SRIndex {
|
||||
clear:both;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.SREntry {
|
||||
font-size: 10pt;
|
||||
padding-left: 1ex;
|
||||
}
|
||||
|
||||
.SRPage .SREntry {
|
||||
font-size: 8pt;
|
||||
padding: 1px 5px;
|
||||
}
|
||||
|
||||
body.SRPage {
|
||||
margin: 5px 2px;
|
||||
}
|
||||
|
||||
.SRChildren {
|
||||
padding-left: 3ex; padding-bottom: .5em
|
||||
}
|
||||
|
||||
.SRPage .SRChildren {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.SRSymbol {
|
||||
font-weight: bold;
|
||||
color: #425E97;
|
||||
font-family: Arial, Verdana, sans-serif;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a.SRScope {
|
||||
display: block;
|
||||
color: #425E97;
|
||||
font-family: Arial, Verdana, sans-serif;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a.SRSymbol:focus, a.SRSymbol:active,
|
||||
a.SRScope:focus, a.SRScope:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
span.SRScope {
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
.SRPage .SRStatus {
|
||||
padding: 2px 5px;
|
||||
font-size: 8pt;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.SRResult {
|
||||
display: none;
|
||||
}
|
||||
|
||||
DIV.searchresults {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
/*---------------- External search page results */
|
||||
|
||||
.searchresult {
|
||||
background-color: #F0F3F8;
|
||||
}
|
||||
|
||||
.pages b {
|
||||
color: white;
|
||||
padding: 5px 5px 3px 5px;
|
||||
background-image: url("../tab_a.png");
|
||||
background-repeat: repeat-x;
|
||||
text-shadow: 0 1px 1px #000000;
|
||||
}
|
||||
|
||||
.pages {
|
||||
line-height: 17px;
|
||||
margin-left: 4px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hl {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#searchresults {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.searchpages {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
791
html/search/search.js
Normal file
|
|
@ -0,0 +1,791 @@
|
|||
function convertToId(search)
|
||||
{
|
||||
var result = '';
|
||||
for (i=0;i<search.length;i++)
|
||||
{
|
||||
var c = search.charAt(i);
|
||||
var cn = c.charCodeAt(0);
|
||||
if (c.match(/[a-z0-9\u0080-\uFFFF]/))
|
||||
{
|
||||
result+=c;
|
||||
}
|
||||
else if (cn<16)
|
||||
{
|
||||
result+="_0"+cn.toString(16);
|
||||
}
|
||||
else
|
||||
{
|
||||
result+="_"+cn.toString(16);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function getXPos(item)
|
||||
{
|
||||
var x = 0;
|
||||
if (item.offsetWidth)
|
||||
{
|
||||
while (item && item!=document.body)
|
||||
{
|
||||
x += item.offsetLeft;
|
||||
item = item.offsetParent;
|
||||
}
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
function getYPos(item)
|
||||
{
|
||||
var y = 0;
|
||||
if (item.offsetWidth)
|
||||
{
|
||||
while (item && item!=document.body)
|
||||
{
|
||||
y += item.offsetTop;
|
||||
item = item.offsetParent;
|
||||
}
|
||||
}
|
||||
return y;
|
||||
}
|
||||
|
||||
/* A class handling everything associated with the search panel.
|
||||
|
||||
Parameters:
|
||||
name - The name of the global variable that will be
|
||||
storing this instance. Is needed to be able to set timeouts.
|
||||
resultPath - path to use for external files
|
||||
*/
|
||||
function SearchBox(name, resultsPath, inFrame, label)
|
||||
{
|
||||
if (!name || !resultsPath) { alert("Missing parameters to SearchBox."); }
|
||||
|
||||
// ---------- Instance variables
|
||||
this.name = name;
|
||||
this.resultsPath = resultsPath;
|
||||
this.keyTimeout = 0;
|
||||
this.keyTimeoutLength = 500;
|
||||
this.closeSelectionTimeout = 300;
|
||||
this.lastSearchValue = "";
|
||||
this.lastResultsPage = "";
|
||||
this.hideTimeout = 0;
|
||||
this.searchIndex = 0;
|
||||
this.searchActive = false;
|
||||
this.insideFrame = inFrame;
|
||||
this.searchLabel = label;
|
||||
|
||||
// ----------- DOM Elements
|
||||
|
||||
this.DOMSearchField = function()
|
||||
{ return document.getElementById("MSearchField"); }
|
||||
|
||||
this.DOMSearchSelect = function()
|
||||
{ return document.getElementById("MSearchSelect"); }
|
||||
|
||||
this.DOMSearchSelectWindow = function()
|
||||
{ return document.getElementById("MSearchSelectWindow"); }
|
||||
|
||||
this.DOMPopupSearchResults = function()
|
||||
{ return document.getElementById("MSearchResults"); }
|
||||
|
||||
this.DOMPopupSearchResultsWindow = function()
|
||||
{ return document.getElementById("MSearchResultsWindow"); }
|
||||
|
||||
this.DOMSearchClose = function()
|
||||
{ return document.getElementById("MSearchClose"); }
|
||||
|
||||
this.DOMSearchBox = function()
|
||||
{ return document.getElementById("MSearchBox"); }
|
||||
|
||||
// ------------ Event Handlers
|
||||
|
||||
// Called when focus is added or removed from the search field.
|
||||
this.OnSearchFieldFocus = function(isActive)
|
||||
{
|
||||
this.Activate(isActive);
|
||||
}
|
||||
|
||||
this.OnSearchSelectShow = function()
|
||||
{
|
||||
var searchSelectWindow = this.DOMSearchSelectWindow();
|
||||
var searchField = this.DOMSearchSelect();
|
||||
|
||||
if (this.insideFrame)
|
||||
{
|
||||
var left = getXPos(searchField);
|
||||
var top = getYPos(searchField);
|
||||
left += searchField.offsetWidth + 6;
|
||||
top += searchField.offsetHeight;
|
||||
|
||||
// show search selection popup
|
||||
searchSelectWindow.style.display='block';
|
||||
left -= searchSelectWindow.offsetWidth;
|
||||
searchSelectWindow.style.left = left + 'px';
|
||||
searchSelectWindow.style.top = top + 'px';
|
||||
}
|
||||
else
|
||||
{
|
||||
var left = getXPos(searchField);
|
||||
var top = getYPos(searchField);
|
||||
top += searchField.offsetHeight;
|
||||
|
||||
// show search selection popup
|
||||
searchSelectWindow.style.display='block';
|
||||
searchSelectWindow.style.left = left + 'px';
|
||||
searchSelectWindow.style.top = top + 'px';
|
||||
}
|
||||
|
||||
// stop selection hide timer
|
||||
if (this.hideTimeout)
|
||||
{
|
||||
clearTimeout(this.hideTimeout);
|
||||
this.hideTimeout=0;
|
||||
}
|
||||
return false; // to avoid "image drag" default event
|
||||
}
|
||||
|
||||
this.OnSearchSelectHide = function()
|
||||
{
|
||||
this.hideTimeout = setTimeout(this.name +".CloseSelectionWindow()",
|
||||
this.closeSelectionTimeout);
|
||||
}
|
||||
|
||||
// Called when the content of the search field is changed.
|
||||
this.OnSearchFieldChange = function(evt)
|
||||
{
|
||||
if (this.keyTimeout) // kill running timer
|
||||
{
|
||||
clearTimeout(this.keyTimeout);
|
||||
this.keyTimeout = 0;
|
||||
}
|
||||
|
||||
var e = (evt) ? evt : window.event; // for IE
|
||||
if (e.keyCode==40 || e.keyCode==13)
|
||||
{
|
||||
if (e.shiftKey==1)
|
||||
{
|
||||
this.OnSearchSelectShow();
|
||||
var win=this.DOMSearchSelectWindow();
|
||||
for (i=0;i<win.childNodes.length;i++)
|
||||
{
|
||||
var child = win.childNodes[i]; // get span within a
|
||||
if (child.className=='SelectItem')
|
||||
{
|
||||
child.focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (window.frames.MSearchResults.searchResults)
|
||||
{
|
||||
var elem = window.frames.MSearchResults.searchResults.NavNext(0);
|
||||
if (elem) elem.focus();
|
||||
}
|
||||
}
|
||||
else if (e.keyCode==27) // Escape out of the search field
|
||||
{
|
||||
this.DOMSearchField().blur();
|
||||
this.DOMPopupSearchResultsWindow().style.display = 'none';
|
||||
this.DOMSearchClose().style.display = 'none';
|
||||
this.lastSearchValue = '';
|
||||
this.Activate(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// strip whitespaces
|
||||
var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
|
||||
|
||||
if (searchValue != this.lastSearchValue) // search value has changed
|
||||
{
|
||||
if (searchValue != "") // non-empty search
|
||||
{
|
||||
// set timer for search update
|
||||
this.keyTimeout = setTimeout(this.name + '.Search()',
|
||||
this.keyTimeoutLength);
|
||||
}
|
||||
else // empty search field
|
||||
{
|
||||
this.DOMPopupSearchResultsWindow().style.display = 'none';
|
||||
this.DOMSearchClose().style.display = 'none';
|
||||
this.lastSearchValue = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.SelectItemCount = function(id)
|
||||
{
|
||||
var count=0;
|
||||
var win=this.DOMSearchSelectWindow();
|
||||
for (i=0;i<win.childNodes.length;i++)
|
||||
{
|
||||
var child = win.childNodes[i]; // get span within a
|
||||
if (child.className=='SelectItem')
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
this.SelectItemSet = function(id)
|
||||
{
|
||||
var i,j=0;
|
||||
var win=this.DOMSearchSelectWindow();
|
||||
for (i=0;i<win.childNodes.length;i++)
|
||||
{
|
||||
var child = win.childNodes[i]; // get span within a
|
||||
if (child.className=='SelectItem')
|
||||
{
|
||||
var node = child.firstChild;
|
||||
if (j==id)
|
||||
{
|
||||
node.innerHTML='•';
|
||||
}
|
||||
else
|
||||
{
|
||||
node.innerHTML=' ';
|
||||
}
|
||||
j++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Called when an search filter selection is made.
|
||||
// set item with index id as the active item
|
||||
this.OnSelectItem = function(id)
|
||||
{
|
||||
this.searchIndex = id;
|
||||
this.SelectItemSet(id);
|
||||
var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
|
||||
if (searchValue!="" && this.searchActive) // something was found -> do a search
|
||||
{
|
||||
this.Search();
|
||||
}
|
||||
}
|
||||
|
||||
this.OnSearchSelectKey = function(evt)
|
||||
{
|
||||
var e = (evt) ? evt : window.event; // for IE
|
||||
if (e.keyCode==40 && this.searchIndex<this.SelectItemCount()) // Down
|
||||
{
|
||||
this.searchIndex++;
|
||||
this.OnSelectItem(this.searchIndex);
|
||||
}
|
||||
else if (e.keyCode==38 && this.searchIndex>0) // Up
|
||||
{
|
||||
this.searchIndex--;
|
||||
this.OnSelectItem(this.searchIndex);
|
||||
}
|
||||
else if (e.keyCode==13 || e.keyCode==27)
|
||||
{
|
||||
this.OnSelectItem(this.searchIndex);
|
||||
this.CloseSelectionWindow();
|
||||
this.DOMSearchField().focus();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// --------- Actions
|
||||
|
||||
// Closes the results window.
|
||||
this.CloseResultsWindow = function()
|
||||
{
|
||||
this.DOMPopupSearchResultsWindow().style.display = 'none';
|
||||
this.DOMSearchClose().style.display = 'none';
|
||||
this.Activate(false);
|
||||
}
|
||||
|
||||
this.CloseSelectionWindow = function()
|
||||
{
|
||||
this.DOMSearchSelectWindow().style.display = 'none';
|
||||
}
|
||||
|
||||
// Performs a search.
|
||||
this.Search = function()
|
||||
{
|
||||
this.keyTimeout = 0;
|
||||
|
||||
// strip leading whitespace
|
||||
var searchValue = this.DOMSearchField().value.replace(/^ +/, "");
|
||||
|
||||
var code = searchValue.toLowerCase().charCodeAt(0);
|
||||
var idxChar = searchValue.substr(0, 1).toLowerCase();
|
||||
if ( 0xD800 <= code && code <= 0xDBFF && searchValue > 1) // surrogate pair
|
||||
{
|
||||
idxChar = searchValue.substr(0, 2);
|
||||
}
|
||||
|
||||
var resultsPage;
|
||||
var resultsPageWithSearch;
|
||||
var hasResultsPage;
|
||||
|
||||
var idx = indexSectionsWithContent[this.searchIndex].indexOf(idxChar);
|
||||
if (idx!=-1)
|
||||
{
|
||||
var hexCode=idx.toString(16);
|
||||
resultsPage = this.resultsPath + '/' + indexSectionNames[this.searchIndex] + '_' + hexCode + '.html';
|
||||
resultsPageWithSearch = resultsPage+'?'+escape(searchValue);
|
||||
hasResultsPage = true;
|
||||
}
|
||||
else // nothing available for this search term
|
||||
{
|
||||
resultsPage = this.resultsPath + '/nomatches.html';
|
||||
resultsPageWithSearch = resultsPage;
|
||||
hasResultsPage = false;
|
||||
}
|
||||
|
||||
window.frames.MSearchResults.location = resultsPageWithSearch;
|
||||
var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow();
|
||||
|
||||
if (domPopupSearchResultsWindow.style.display!='block')
|
||||
{
|
||||
var domSearchBox = this.DOMSearchBox();
|
||||
this.DOMSearchClose().style.display = 'inline';
|
||||
if (this.insideFrame)
|
||||
{
|
||||
var domPopupSearchResults = this.DOMPopupSearchResults();
|
||||
domPopupSearchResultsWindow.style.position = 'relative';
|
||||
domPopupSearchResultsWindow.style.display = 'block';
|
||||
var width = document.body.clientWidth - 8; // the -8 is for IE :-(
|
||||
domPopupSearchResultsWindow.style.width = width + 'px';
|
||||
domPopupSearchResults.style.width = width + 'px';
|
||||
}
|
||||
else
|
||||
{
|
||||
var domPopupSearchResults = this.DOMPopupSearchResults();
|
||||
var left = getXPos(domSearchBox) + 150; // domSearchBox.offsetWidth;
|
||||
var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1;
|
||||
domPopupSearchResultsWindow.style.display = 'block';
|
||||
left -= domPopupSearchResults.offsetWidth;
|
||||
domPopupSearchResultsWindow.style.top = top + 'px';
|
||||
domPopupSearchResultsWindow.style.left = left + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
this.lastSearchValue = searchValue;
|
||||
this.lastResultsPage = resultsPage;
|
||||
}
|
||||
|
||||
// -------- Activation Functions
|
||||
|
||||
// Activates or deactivates the search panel, resetting things to
|
||||
// their default values if necessary.
|
||||
this.Activate = function(isActive)
|
||||
{
|
||||
if (isActive || // open it
|
||||
this.DOMPopupSearchResultsWindow().style.display == 'block'
|
||||
)
|
||||
{
|
||||
this.DOMSearchBox().className = 'MSearchBoxActive';
|
||||
|
||||
var searchField = this.DOMSearchField();
|
||||
|
||||
if (searchField.value == this.searchLabel) // clear "Search" term upon entry
|
||||
{
|
||||
searchField.value = '';
|
||||
this.searchActive = true;
|
||||
}
|
||||
}
|
||||
else if (!isActive) // directly remove the panel
|
||||
{
|
||||
this.DOMSearchBox().className = 'MSearchBoxInactive';
|
||||
this.DOMSearchField().value = this.searchLabel;
|
||||
this.searchActive = false;
|
||||
this.lastSearchValue = ''
|
||||
this.lastResultsPage = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// The class that handles everything on the search results page.
|
||||
function SearchResults(name)
|
||||
{
|
||||
// The number of matches from the last run of <Search()>.
|
||||
this.lastMatchCount = 0;
|
||||
this.lastKey = 0;
|
||||
this.repeatOn = false;
|
||||
|
||||
// Toggles the visibility of the passed element ID.
|
||||
this.FindChildElement = function(id)
|
||||
{
|
||||
var parentElement = document.getElementById(id);
|
||||
var element = parentElement.firstChild;
|
||||
|
||||
while (element && element!=parentElement)
|
||||
{
|
||||
if (element.nodeName == 'DIV' && element.className == 'SRChildren')
|
||||
{
|
||||
return element;
|
||||
}
|
||||
|
||||
if (element.nodeName == 'DIV' && element.hasChildNodes())
|
||||
{
|
||||
element = element.firstChild;
|
||||
}
|
||||
else if (element.nextSibling)
|
||||
{
|
||||
element = element.nextSibling;
|
||||
}
|
||||
else
|
||||
{
|
||||
do
|
||||
{
|
||||
element = element.parentNode;
|
||||
}
|
||||
while (element && element!=parentElement && !element.nextSibling);
|
||||
|
||||
if (element && element!=parentElement)
|
||||
{
|
||||
element = element.nextSibling;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.Toggle = function(id)
|
||||
{
|
||||
var element = this.FindChildElement(id);
|
||||
if (element)
|
||||
{
|
||||
if (element.style.display == 'block')
|
||||
{
|
||||
element.style.display = 'none';
|
||||
}
|
||||
else
|
||||
{
|
||||
element.style.display = 'block';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Searches for the passed string. If there is no parameter,
|
||||
// it takes it from the URL query.
|
||||
//
|
||||
// Always returns true, since other documents may try to call it
|
||||
// and that may or may not be possible.
|
||||
this.Search = function(search)
|
||||
{
|
||||
if (!search) // get search word from URL
|
||||
{
|
||||
search = window.location.search;
|
||||
search = search.substring(1); // Remove the leading '?'
|
||||
search = unescape(search);
|
||||
}
|
||||
|
||||
search = search.replace(/^ +/, ""); // strip leading spaces
|
||||
search = search.replace(/ +$/, ""); // strip trailing spaces
|
||||
search = search.toLowerCase();
|
||||
search = convertToId(search);
|
||||
|
||||
var resultRows = document.getElementsByTagName("div");
|
||||
var matches = 0;
|
||||
|
||||
var i = 0;
|
||||
while (i < resultRows.length)
|
||||
{
|
||||
var row = resultRows.item(i);
|
||||
if (row.className == "SRResult")
|
||||
{
|
||||
var rowMatchName = row.id.toLowerCase();
|
||||
rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_'
|
||||
|
||||
if (search.length<=rowMatchName.length &&
|
||||
rowMatchName.substr(0, search.length)==search)
|
||||
{
|
||||
row.style.display = 'block';
|
||||
matches++;
|
||||
}
|
||||
else
|
||||
{
|
||||
row.style.display = 'none';
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
document.getElementById("Searching").style.display='none';
|
||||
if (matches == 0) // no results
|
||||
{
|
||||
document.getElementById("NoMatches").style.display='block';
|
||||
}
|
||||
else // at least one result
|
||||
{
|
||||
document.getElementById("NoMatches").style.display='none';
|
||||
}
|
||||
this.lastMatchCount = matches;
|
||||
return true;
|
||||
}
|
||||
|
||||
// return the first item with index index or higher that is visible
|
||||
this.NavNext = function(index)
|
||||
{
|
||||
var focusItem;
|
||||
while (1)
|
||||
{
|
||||
var focusName = 'Item'+index;
|
||||
focusItem = document.getElementById(focusName);
|
||||
if (focusItem && focusItem.parentNode.parentNode.style.display=='block')
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (!focusItem) // last element
|
||||
{
|
||||
break;
|
||||
}
|
||||
focusItem=null;
|
||||
index++;
|
||||
}
|
||||
return focusItem;
|
||||
}
|
||||
|
||||
this.NavPrev = function(index)
|
||||
{
|
||||
var focusItem;
|
||||
while (1)
|
||||
{
|
||||
var focusName = 'Item'+index;
|
||||
focusItem = document.getElementById(focusName);
|
||||
if (focusItem && focusItem.parentNode.parentNode.style.display=='block')
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (!focusItem) // last element
|
||||
{
|
||||
break;
|
||||
}
|
||||
focusItem=null;
|
||||
index--;
|
||||
}
|
||||
return focusItem;
|
||||
}
|
||||
|
||||
this.ProcessKeys = function(e)
|
||||
{
|
||||
if (e.type == "keydown")
|
||||
{
|
||||
this.repeatOn = false;
|
||||
this.lastKey = e.keyCode;
|
||||
}
|
||||
else if (e.type == "keypress")
|
||||
{
|
||||
if (!this.repeatOn)
|
||||
{
|
||||
if (this.lastKey) this.repeatOn = true;
|
||||
return false; // ignore first keypress after keydown
|
||||
}
|
||||
}
|
||||
else if (e.type == "keyup")
|
||||
{
|
||||
this.lastKey = 0;
|
||||
this.repeatOn = false;
|
||||
}
|
||||
return this.lastKey!=0;
|
||||
}
|
||||
|
||||
this.Nav = function(evt,itemIndex)
|
||||
{
|
||||
var e = (evt) ? evt : window.event; // for IE
|
||||
if (e.keyCode==13) return true;
|
||||
if (!this.ProcessKeys(e)) return false;
|
||||
|
||||
if (this.lastKey==38) // Up
|
||||
{
|
||||
var newIndex = itemIndex-1;
|
||||
var focusItem = this.NavPrev(newIndex);
|
||||
if (focusItem)
|
||||
{
|
||||
var child = this.FindChildElement(focusItem.parentNode.parentNode.id);
|
||||
if (child && child.style.display == 'block') // children visible
|
||||
{
|
||||
var n=0;
|
||||
var tmpElem;
|
||||
while (1) // search for last child
|
||||
{
|
||||
tmpElem = document.getElementById('Item'+newIndex+'_c'+n);
|
||||
if (tmpElem)
|
||||
{
|
||||
focusItem = tmpElem;
|
||||
}
|
||||
else // found it!
|
||||
{
|
||||
break;
|
||||
}
|
||||
n++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (focusItem)
|
||||
{
|
||||
focusItem.focus();
|
||||
}
|
||||
else // return focus to search field
|
||||
{
|
||||
parent.document.getElementById("MSearchField").focus();
|
||||
}
|
||||
}
|
||||
else if (this.lastKey==40) // Down
|
||||
{
|
||||
var newIndex = itemIndex+1;
|
||||
var focusItem;
|
||||
var item = document.getElementById('Item'+itemIndex);
|
||||
var elem = this.FindChildElement(item.parentNode.parentNode.id);
|
||||
if (elem && elem.style.display == 'block') // children visible
|
||||
{
|
||||
focusItem = document.getElementById('Item'+itemIndex+'_c0');
|
||||
}
|
||||
if (!focusItem) focusItem = this.NavNext(newIndex);
|
||||
if (focusItem) focusItem.focus();
|
||||
}
|
||||
else if (this.lastKey==39) // Right
|
||||
{
|
||||
var item = document.getElementById('Item'+itemIndex);
|
||||
var elem = this.FindChildElement(item.parentNode.parentNode.id);
|
||||
if (elem) elem.style.display = 'block';
|
||||
}
|
||||
else if (this.lastKey==37) // Left
|
||||
{
|
||||
var item = document.getElementById('Item'+itemIndex);
|
||||
var elem = this.FindChildElement(item.parentNode.parentNode.id);
|
||||
if (elem) elem.style.display = 'none';
|
||||
}
|
||||
else if (this.lastKey==27) // Escape
|
||||
{
|
||||
parent.searchBox.CloseResultsWindow();
|
||||
parent.document.getElementById("MSearchField").focus();
|
||||
}
|
||||
else if (this.lastKey==13) // Enter
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
this.NavChild = function(evt,itemIndex,childIndex)
|
||||
{
|
||||
var e = (evt) ? evt : window.event; // for IE
|
||||
if (e.keyCode==13) return true;
|
||||
if (!this.ProcessKeys(e)) return false;
|
||||
|
||||
if (this.lastKey==38) // Up
|
||||
{
|
||||
if (childIndex>0)
|
||||
{
|
||||
var newIndex = childIndex-1;
|
||||
document.getElementById('Item'+itemIndex+'_c'+newIndex).focus();
|
||||
}
|
||||
else // already at first child, jump to parent
|
||||
{
|
||||
document.getElementById('Item'+itemIndex).focus();
|
||||
}
|
||||
}
|
||||
else if (this.lastKey==40) // Down
|
||||
{
|
||||
var newIndex = childIndex+1;
|
||||
var elem = document.getElementById('Item'+itemIndex+'_c'+newIndex);
|
||||
if (!elem) // last child, jump to parent next parent
|
||||
{
|
||||
elem = this.NavNext(itemIndex+1);
|
||||
}
|
||||
if (elem)
|
||||
{
|
||||
elem.focus();
|
||||
}
|
||||
}
|
||||
else if (this.lastKey==27) // Escape
|
||||
{
|
||||
parent.searchBox.CloseResultsWindow();
|
||||
parent.document.getElementById("MSearchField").focus();
|
||||
}
|
||||
else if (this.lastKey==13) // Enter
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function setKeyActions(elem,action)
|
||||
{
|
||||
elem.setAttribute('onkeydown',action);
|
||||
elem.setAttribute('onkeypress',action);
|
||||
elem.setAttribute('onkeyup',action);
|
||||
}
|
||||
|
||||
function setClassAttr(elem,attr)
|
||||
{
|
||||
elem.setAttribute('class',attr);
|
||||
elem.setAttribute('className',attr);
|
||||
}
|
||||
|
||||
function createResults()
|
||||
{
|
||||
var results = document.getElementById("SRResults");
|
||||
for (var e=0; e<searchData.length; e++)
|
||||
{
|
||||
var id = searchData[e][0];
|
||||
var srResult = document.createElement('div');
|
||||
srResult.setAttribute('id','SR_'+id);
|
||||
setClassAttr(srResult,'SRResult');
|
||||
var srEntry = document.createElement('div');
|
||||
setClassAttr(srEntry,'SREntry');
|
||||
var srLink = document.createElement('a');
|
||||
srLink.setAttribute('id','Item'+e);
|
||||
setKeyActions(srLink,'return searchResults.Nav(event,'+e+')');
|
||||
setClassAttr(srLink,'SRSymbol');
|
||||
srLink.innerHTML = searchData[e][1][0];
|
||||
srEntry.appendChild(srLink);
|
||||
if (searchData[e][1].length==2) // single result
|
||||
{
|
||||
srLink.setAttribute('href',searchData[e][1][1][0]);
|
||||
if (searchData[e][1][1][1])
|
||||
{
|
||||
srLink.setAttribute('target','_parent');
|
||||
}
|
||||
var srScope = document.createElement('span');
|
||||
setClassAttr(srScope,'SRScope');
|
||||
srScope.innerHTML = searchData[e][1][1][2];
|
||||
srEntry.appendChild(srScope);
|
||||
}
|
||||
else // multiple results
|
||||
{
|
||||
srLink.setAttribute('href','javascript:searchResults.Toggle("SR_'+id+'")');
|
||||
var srChildren = document.createElement('div');
|
||||
setClassAttr(srChildren,'SRChildren');
|
||||
for (var c=0; c<searchData[e][1].length-1; c++)
|
||||
{
|
||||
var srChild = document.createElement('a');
|
||||
srChild.setAttribute('id','Item'+e+'_c'+c);
|
||||
setKeyActions(srChild,'return searchResults.NavChild(event,'+e+','+c+')');
|
||||
setClassAttr(srChild,'SRScope');
|
||||
srChild.setAttribute('href',searchData[e][1][c+1][0]);
|
||||
if (searchData[e][1][c+1][1])
|
||||
{
|
||||
srChild.setAttribute('target','_parent');
|
||||
}
|
||||
srChild.innerHTML = searchData[e][1][c+1][2];
|
||||
srChildren.appendChild(srChild);
|
||||
}
|
||||
srEntry.appendChild(srChildren);
|
||||
}
|
||||
srResult.appendChild(srEntry);
|
||||
results.appendChild(srResult);
|
||||
}
|
||||
}
|
||||
|
||||
function init_search()
|
||||
{
|
||||
var results = document.getElementById("MSearchSelectWindow");
|
||||
for (var key in indexSectionLabels)
|
||||
{
|
||||
var link = document.createElement('a');
|
||||
link.setAttribute('class','SelectItem');
|
||||
link.setAttribute('onclick','searchBox.OnSelectItem('+key+')');
|
||||
link.href='javascript:void(0)';
|
||||
link.innerHTML='<span class="SelectionMark"> </span>'+indexSectionLabels[key];
|
||||
results.appendChild(link);
|
||||
}
|
||||
searchBox.OnSelectItem(0);
|
||||
}
|
||||
|
||||
BIN
html/search/search_l.png
Normal file
|
After Width: | Height: | Size: 604 B |
BIN
html/search/search_m.png
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
html/search/search_r.png
Normal file
|
After Width: | Height: | Size: 612 B |
36
html/search/searchdata.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
var indexSectionsWithContent =
|
||||
{
|
||||
0: "abcgos~",
|
||||
1: "a",
|
||||
2: "a",
|
||||
3: "abcgs~",
|
||||
4: "o",
|
||||
5: "o",
|
||||
6: "o",
|
||||
7: "a"
|
||||
};
|
||||
|
||||
var indexSectionNames =
|
||||
{
|
||||
0: "all",
|
||||
1: "classes",
|
||||
2: "files",
|
||||
3: "functions",
|
||||
4: "enums",
|
||||
5: "enumvalues",
|
||||
6: "defines",
|
||||
7: "pages"
|
||||
};
|
||||
|
||||
var indexSectionLabels =
|
||||
{
|
||||
0: "All",
|
||||
1: "Classes",
|
||||
2: "Files",
|
||||
3: "Functions",
|
||||
4: "Enumerations",
|
||||
5: "Enumerator",
|
||||
6: "Macros",
|
||||
7: "Pages"
|
||||
};
|
||||
|
||||
BIN
html/splitbar.png
Normal file
|
After Width: | Height: | Size: 314 B |
BIN
html/sync_off.png
Normal file
|
After Width: | Height: | Size: 853 B |
BIN
html/sync_on.png
Normal file
|
After Width: | Height: | Size: 845 B |
BIN
html/tab_a.png
Normal file
|
After Width: | Height: | Size: 142 B |
BIN
html/tab_b.png
Normal file
|
After Width: | Height: | Size: 169 B |
BIN
html/tab_h.png
Normal file
|
After Width: | Height: | Size: 177 B |
BIN
html/tab_s.png
Normal file
|
After Width: | Height: | Size: 184 B |