Skip to content

RobCranfill/blatb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blatb

BackLight According To Brightness

Yet another (sub)projet for my Raspberry Pi weather display.

This sets the display's backlight according to the ambient light level as read by an attached Adafruit VEML7700 light sensor.

I wasn't sure what range of values the sensor returns, so I included code to dump the raw values to a file. This isn't necessary and I guess I may remove that in the near future. The included shell script finds the min and max of those values.

Files

  • blatb.py The code that's run every minute (or whatever) by cron.
  • blatb.sh OK, this is what's run every minute by cron! ;-)
  • cron-listing This is the crontab line that kicks it off.

Prerequisites

  • Hardware

    • RPi & Raspian ('Buster' is what I'm running)
    • An attached Adafruit VEML7700 light sensor (see above link)
    • Must enable I2C (using raspi-config)
    • Must restart after updating udev rules
  • Software libraries

    • adafruit_veml7700
      • pip3 install adafruit-circuitpython-veml7700 (this will also install various other Adafruit "Circuit Python" libraries.)
    • rpi-backlight
      • pip3 install rpi-backlight

About

Backlight according to (ambient) brightness

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published