|
| 1 | +# Deneyap UV Light Sensor LTR390 Library |
| 2 | +[FOR TURKISH VERSION](docs/README_tr.md)  |
| 3 | + |
| 4 | +***** Add photo **** |
| 5 | + |
| 6 | +Arduino library for Deneyap UV Light Sensor LTR390 |
| 7 | + |
| 8 | +## Specifications |
| 9 | +- `Product ID` **M41** ,**mpv1.0** |
| 10 | +- `MCU` LTR390 |
| 11 | +- `Weight` |
| 12 | +- `Module Dimension` |
| 13 | +- `I2C address` 0x53 |
| 14 | + |
| 15 | +| Address | | |
| 16 | +| :--- | :--- | |
| 17 | +| 0x53 | default address | |
| 18 | + |
| 19 | +## :closed_book:Documentation |
| 20 | +Deneyap UV Light Sensor |
| 21 | + |
| 22 | +[LTR390 datasheet](https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf) |
| 23 | + |
| 24 | +[How to install a Arduino Library](https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries) |
| 25 | + |
| 26 | +## :pushpin:Deneyap UV Light Sensor LTR390 |
| 27 | +This Arduino library allows you to use Deneyap UV Light Sensor LTR390 with I2C peripheral. You can use this library in your projects with any Arduino compatible board with I2C peripheral. |
| 28 | + |
| 29 | +## :globe_with_meridians:Repository Contents |
| 30 | +- `/docs ` README_tr.md and product photos |
| 31 | +- `/examples ` Examples with .ino extension sketches |
| 32 | +- `/src ` Source files (.cpp .h) |
| 33 | +- `keywords.txt ` Keywords from this library that will be highlighted in the Arduino IDE |
| 34 | +- `library.properties ` General library properties for the Arduino package manager |
| 35 | + |
| 36 | +## Version History |
| 37 | +1.0.0 - initial release |
| 38 | + |
| 39 | +## :rocket:Hardware Connections |
| 40 | +- Deneyap UV Light Sensor and Board can be connected with I2C cable |
| 41 | +- or 3V3, GND, SDA and SCL pins can be connected with jumper cables |
| 42 | + |
| 43 | +|UV Light Sensor| Function | Board pins | |
| 44 | +|:--- | :--- | :---| |
| 45 | +|3.3V | Power |3.3V | |
| 46 | +|GND | Ground | GND | |
| 47 | +|SDA | I2C Data | SDA pin | |
| 48 | +|SCL | I2C Clock | SCL pin | |
| 49 | +|INT | Interrupt| | |
| 50 | + |
| 51 | +## License Information |
| 52 | +Please review the [LICENSE](https://github.com/deneyapkart/deneyap-ultraviyole-isik-algilayici-arduino-library/blob/master/LICENSE) file for license information. |
| 53 | + |
| 54 | +This code is partly based on the Adafruit LTR390 Arduino Library. Changed to work with Deneyap UV Light Sensor LTR390 library. |
| 55 | +Following their requirements, here is the Adafruit README file: |
| 56 | + |
| 57 | +Adafruit_LTR390 Build Status/Documentation |
| 58 | +This is the Adafruit LTR390 UV sensor library |
| 59 | + |
| 60 | +Tested and works great with the Adafruit LTR390 Breakout Board |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +This chip uses I2C to communicate, 2 pins are required to interface |
| 65 | + |
| 66 | +Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit! |
| 67 | + |
| 68 | +Installation |
| 69 | +To install, use the Arduino Library Manager and search for "Adafruit LTR390" and install the library. |
| 70 | + |
| 71 | +Dependencies |
| 72 | +Adafruit_BusIO |
| 73 | +Contributing |
| 74 | +Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming. |
| 75 | + |
| 76 | +Documentation and doxygen |
| 77 | +Documentation is produced by doxygen. Contributions should include documentation for any new code added. |
| 78 | + |
| 79 | +Some examples of how to use doxygen can be found in these guide pages: |
| 80 | + |
| 81 | +https://learn.adafruit.com/the-well-automated-arduino-library/doxygen |
| 82 | + |
| 83 | +https://learn.adafruit.com/the-well-automated-arduino-library/doxygen-tips |
| 84 | + |
| 85 | +Formatting and clang-format |
| 86 | +This library uses clang-format to standardize the formatting of .cpp and .h files. Contributions should be formatted using clang-format: |
| 87 | + |
| 88 | +The -i flag will make the changes to the file. |
| 89 | + |
| 90 | +clang-format -i *.cpp *.h |
| 91 | +If you prefer to make the changes yourself, running clang-format without the -i flag will print out a formatted version of the file. You can save this to a file and diff it against the original to see the changes. |
| 92 | + |
| 93 | +Note that the formatting output by clang-format is what the automated formatting checker will expect. Any diffs from this formatting will result in a failed build until they are addressed. Using the -i flag is highly recommended. |
| 94 | + |
| 95 | +clang-format resources |
| 96 | +Binary builds and source available on the LLVM downloads page |
| 97 | +Documentation and IDE integration |
| 98 | +About this Driver |
| 99 | +Written by Limor Fried for Adafruit Industries. |
| 100 | +BSD license, check license.txt for more information All text above must be included in any redistribution |
0 commit comments