Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palouf34/veml7700
lib for micropython for veml7700
https://github.com/palouf34/veml7700
Last synced: 3 months ago
JSON representation
lib for micropython for veml7700
- Host: GitHub
- URL: https://github.com/palouf34/veml7700
- Owner: palouf34
- Created: 2019-01-18T14:40:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-21T14:18:38.000Z (almost 5 years ago)
- Last Synced: 2024-04-22T12:36:17.373Z (7 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-micropython - veml7700 - Library for MicroPython for VEML7700 light sensor. (Libraries / Sensors)
README
# veml7700
this library dedicated to micropython is used to communicate with the VEML7700 light sensor
in a simple and fast way, while controlling the usage parametersusage:
```python
from machine import Pin, I2C
import veml7700i2c = I2C(0)
i2c = I2C(1, scl=Pin(22), sda=Pin(21), freq=10000)veml = veml7700.VEML7700(address=0x10, i2c=i2c, it=100, gain=1/8)
lux_val = veml.read_lux()
```Parameters:
`address`: The I2C address of the sensor, standard is `0x10`
`i2c`: The I2C bus object
`it`: The integration time of the sensor, standard is `25 ms`
Available times are: `25, 50, 100, 200, 400, 800 ms``gain`: The gain of the sensor, standard is `1/8`
Available gains are: `1/8, 1/4, 1, 2`