Skip to content

A Rust embedded-hal driver for the TSL2591 ambient light sensor.

License

Notifications You must be signed in to change notification settings

kurtjd/tsl2591-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀 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.

About

A Rust embedded-hal driver for the TSL2591 ambient light sensor.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages