![]() |
LibDriver TSL2561
|
driver tsl2561 basic header file More...
#include "driver_tsl2561_interface.h"Go to the source code of this file.
Macros | |
| #define | TSL2561_BASIC_DEFAULT_GAIN TSL2561_GAIN_16 |
| tsl2561 basic example default definition | |
| #define | TSL2561_BASIC_DEFAULT_INTEGRATION_TIME TSL2561_INTEGRATION_TIME_402MS |
| #define | TSL2561_BASIC_DEFAULT_INTERRUPT_MODE TSL2561_INTERRUPT_MODE_15_INTEGRATION_TIME_OUT_OF_RANGE |
| #define | TSL2561_BASIC_DEFAULT_INTERRUPT TSL2561_BOOL_FALSE |
| #define | TSL2561_BASIC_DEFAULT_INTERRUPT_HIGH_THRESHOLD 0xFFFFU |
| #define | TSL2561_BASIC_DEFAULT_INTERRUPT_LOW_THRESHOLD 0x0000U |
Functions | |
| uint8_t | tsl2561_basic_init (tsl2561_address_t addr_pin) |
| basic example init | |
| uint8_t | tsl2561_basic_deinit (void) |
| basic example deinit | |
| uint8_t | tsl2561_basic_read (uint32_t *lux) |
| basic example read | |
driver tsl2561 basic header file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description |
|---|---|---|---|
| 2021/02/26 | 2.0 | Shifeng Li | format the code |
| 2020/10/28 | 1.0 | Shifeng Li | first upload |
Definition in file driver_tsl2561_basic.h.