Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcauser/micropython-max44009
MicroPython driver for the MAX44009 ambient light sensor
https://github.com/mcauser/micropython-max44009
gy-49 max44009 micropython
Last synced: 3 months ago
JSON representation
MicroPython driver for the MAX44009 ambient light sensor
- Host: GitHub
- URL: https://github.com/mcauser/micropython-max44009
- Owner: mcauser
- License: mit
- Created: 2020-09-18T23:48:14.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-25T08:13:08.000Z (about 4 years ago)
- Last Synced: 2024-04-22T12:36:20.551Z (7 months ago)
- Topics: gy-49, max44009, micropython
- Language: Python
- Homepage:
- Size: 845 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-micropython - micropython-max44009 - MicroPython driver for the MAX44009 ambient light sensor. (Libraries / Sensors)
README
# MicroPython MAX44009 Ambient Light Sensor
A MicroPython driver for the MAX44009 ambient light sensor with I2C Interface.
![demo](docs/demo.jpg)
```
import max44009
from machine import I2C, Pin
i2c = I2C(scl=Pin(22), sda=Pin(21))sensor = max44009.MAX44009(i2c)
sensor.continuous
0sensor.continuous = 1
sensor.manual = 0
sensor.current_division_ratio = 0
sensor.integration_time = 3
sensor._read_config()
sensor._config
131sensor.lux
136.8sensor.lux_fast
126.72sensor.int_status
0sensor.int_enable
0sensor.int_enable = 1
sensor.upper_threshold
188006.4sensor.upper_threshold = 200
sensor.lower_threshold
0.0sensor.lower_threshold = 100
sensor.threshold_timer
25500sensor.threshold_timer = 1000
```## License
Licensed under the [MIT License](http://opensource.org/licenses/MIT).
Copyright (c) 2020 Mike Causer