Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 855 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 855 Bytes

🦀 TSL2591 Rust embedded-hal driver

A platform-agnostic driver for the TSL2591 I2C ambient light sensor, written in Rust using embedded-hal.

Status

  • Contains basic functionality for reading sensor data and converting to lux.
  • Supports changing ADC gain modes and integration time.
  • Supports interrupts with user-configurable persist filter and ADC thresholds.
  • Supports blocking and non-blocking/async I2C modes.
  • Will work on improving interface and making code Rustier

How to Use

  • See examples/stm32-nucleo-f411re for how to use this driver in blocking mode via polling.
  • See examples/stm32-nucleo-f411re-async for how to use this driver in non-blocking/async mode via Embassy.

Further documentation is currently being worked on.

License

This driver is licensed under the MIT license and is completely free to use and modify.